This repository has been archived by the owner on Feb 24, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.pre-commit-config.yaml
83 lines (83 loc) · 2.09 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: check-added-large-files
- id: mixed-line-ending
- id: check-executables-have-shebangs
- id: check-merge-conflict
- id: check-yaml
- id: check-json
- id: check-builtin-literals
- id: debug-statements
- id: end-of-file-fixer
- id: fix-encoding-pragma
args:
- --remove
- id: trailing-whitespace
- id: flake8
args:
- --statistics
- repo: https://github.com/prettier/prettier
rev: 1.18.2
hooks:
- id: prettier
exclude: "^.*(md|markdown|mdown|mkdn)$"
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.4.1
hooks:
- id: python-check-blanket-noqa
- id: python-check-mock-methods
- id: python-no-log-warn
- id: rst-backticks
- repo: https://github.com/Lucas-C/pre-commit-hooks-safety
rev: v1.1.0
hooks:
- id: python-safety-dependencies-check
- repo: https://github.com/asottile/seed-isort-config
rev: v1.9.3
hooks:
- id: seed-isort-config
args:
- --application-directories
- mig3
- repo: https://github.com/pre-commit/mirrors-isort
rev: v4.3.21
hooks:
- id: isort
additional_dependencies:
- isort[pyproject]
- repo: https://github.com/ambv/black
rev: 19.3b0
hooks:
- id: black
- repo: https://github.com/PyCQA/bandit
rev: 1.6.2
hooks:
- id: bandit
args:
- -v
- -c
- bandit.yml
exclude: >
(?x)^(
.*/migrations/.*\.py$|
.*/admin.*\.py$|
tests.*\.py$|
.*/conftest\.py$
)$
- repo: https://github.com/PyCQA/pydocstyle
rev: 4.0.1
hooks:
- id: pydocstyle
verbose: true
args:
- --convention=numpy
- --add-ignore=D100,D104,D105
- -e
exclude: >
(?x)^(
.*/migrations/.*\.py$|
.*/admin.*\.py$|
mig3/manage\.py$
)$