-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.pre-commit-config.yaml
41 lines (41 loc) · 1.29 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
repos:
- repo: https://github.com/ambv/black
rev: 22.3.0
hooks:
- id: black
language_version: python3
- repo: https://github.com/PyCQA/flake8
rev: 3.9.2
hooks:
- id: flake8
args:
- "--max-line-length=79"
- "--max-complexity=18"
- "--ignore=E501,W503,E203,F401,D400,D101,D102,C101,F403,D205,D401,D202,T001,D105,D104,C901,D200,S001,D103,F841"
- "--exclude=data/ docs/ test/"
additional_dependencies:
[
"flake8-bugbear==19.8.0",
"flake8-coding==1.3.2",
"flake8-comprehensions==3.0.1",
"flake8-debugger==3.2.1",
"flake8-deprecated==1.3",
"flake8-pep3101==1.2.1",
"flake8-polyfill==1.0.2",
"flake8-print==3.1.4",
"flake8-string-format==0.2.3",
"flake8-docstrings==1.5.0",
]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: end-of-file-fixer
- id: check-yaml
- id: check-json
- id: forbid-new-submodules
- id: pretty-format-json
args: [ '--no-sort-keys' ]
- id: no-commit-to-branch
args: [ --branch, master ]
- id: no-commit-to-branch
args: [ --branch, main ]