-
Notifications
You must be signed in to change notification settings - Fork 5
/
.pre-commit-config.yaml
47 lines (42 loc) · 1.16 KB
/
.pre-commit-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
repos:
# a list of available plugins is here:
# https://pre-commit.com/hooks.html
# black: python code linting
- repo: https://github.com/psf/black
rev: stable
hooks:
- id: black
language_version: python3
# various code cleanup tasks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.4.0
hooks:
- id: check-ast
- id: check-executables-have-shebangs
- id: check-merge-conflict
- id: check-yaml
- id: debug-statements
- id: detect-private-key
- id: detect-aws-credentials
args: [--allow-missing-credentials]
- id: end-of-file-fixer
- id: mixed-line-ending
- id: name-tests-test
- id: requirements-txt-fixer
- id: trailing-whitespace
# python import sorting, remove unused imports
- repo: https://github.com/sqlalchemyorg/zimports/
rev: 0.2.0
hooks:
- id: zimports
# vulnerability checking
- repo: https://github.com/Lucas-C/pre-commit-hooks-safety
sha: v1.1.0
hooks:
- id: python-safety-dependencies-check
# Dockerfile linting
- repo: https://github.com/pryorda/dockerfilelint-precommit-hooks
rev: v0.1.0
hooks:
- id: dockerfilelint
stages: [commit]