-
Notifications
You must be signed in to change notification settings - Fork 5
/
.pre-commit-config.yaml
49 lines (48 loc) · 1.35 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: check-yaml
exclude: meta\.yaml
- id: check-merge-conflict
- id: debug-statements
- repo: https://github.com/asottile/pyupgrade
rev: v1.23.0
hooks:
- id: pyupgrade
args: [--py36-plus]
- repo: https://github.com/asottile/reorder_python_imports
rev: v1.6.1
hooks:
- id: reorder-python-imports
types: [python]
- repo: https://github.com/python/black
rev: 22.3.0
hooks:
- id: black
types: [python]
- repo: https://github.com/asottile/blacken-docs
rev: v1.3.0
hooks:
- id: blacken-docs
additional_dependencies: [black==21.12b0]
types: [rst]
- repo: https://gitlab.com/pycqa/flake8
rev: 3.7.8
hooks:
- id: flake8
types: [python]
additional_dependencies: [
flake8-bugbear, flake8-builtins, flake8-comprehensions, flake8-docstrings,
flake8-eradicate, flake8-print, flake8-rst-docstrings, flake8-todo,
pep8-naming, pydocstyle<4.0,
]
exclude: 'conf.py'
- repo: https://github.com/PyCQA/doc8
rev: 0.8.1rc2
hooks:
- id: doc8
- repo: meta
hooks:
- id: check-hooks-apply
- id: check-useless-excludes