-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.pre-commit-config.yaml
46 lines (46 loc) · 1.19 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
default_language_version:
python: python3.10
repos:
- repo: https://github.com/ambv/black
rev: 22.3.0
hooks:
- id: black
language_version: python3.10
args: ['--target-version', 'py310']
- repo: https://github.com/pycqa/flake8
rev: 3.9.2
hooks:
- id: flake8
additional_dependencies: [ 'flake8-bugbear==21.4.3', 'importlib_metadata==4.3' ]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: name-tests-test
args: ['--django']
- repo: https://github.com/PyCQA/bandit
rev: '1.7.0'
hooks:
- id: bandit
exclude: tests/
args:
- '-s'
- 'B101' # allow use of assert
- repo: https://github.com/pre-commit/mirrors-mypy
rev: 'v0.902'
hooks:
- id: mypy
exclude: docs/
additional_dependencies:
- "types-requests~=0.1.9" # type stubs for requests. mypy 0.900 no longer ships these.
- repo: https://github.com/pre-commit/mirrors-pylint
rev: 'v2.7.4'
hooks:
- id: pylint
args: [
--disable=import-error,
]
exclude: (tests|docs)
- repo: https://github.com/PyCQA/doc8
rev: '0.8.1'
hooks:
- id: doc8