-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
67 lines (58 loc) · 1.62 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
exclude: ^(data|.idea|obsolete)
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-added-large-files
- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
- id: black
args: [--config=.github/linters/.python-black, --diff]
- repo: https://github.com/pycqa/flake8
rev: 4.0.1
hooks:
- id: flake8
# args: [--config=.github/linters/.flake8]
args: [
"--max-line-length=88", "--extend-ignore=E203,E501,W503", "--builtins=request"]
additional_dependencies: [flake8-bugbear]
- repo: https://github.com/PyCQA/isort
rev: 5.12.0
hooks:
- id: isort
args: [--sp=.github/linters/.isort.cfg, --diff]
additional_dependencies:
- toml
- repo: https://github.com/PyCQA/pylint
rev: v2.13.4
hooks:
- id: pylint
exclude: versioneer.py|lmpy/_version.py
args: [--rcfile=.github/linters/.python-lint]
- repo: https://github.com/PyCQA/pydocstyle
rev: 6.1.1
hooks:
- id: pydocstyle
args: ['--convention=google']
- repo: https://github.com/terrencepreilly/darglint
rev: v1.8.1
hooks:
- id: darglint
args: ['-v2', '-sgoogle']
- repo: https://github.com/asottile/pyupgrade
rev: v2.31.1
hooks:
- id: pyupgrade
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.1.13
hooks:
- id: forbid-tabs
files: \.(py|rst|md)$
- repo: https://github.com/asottile/setup-cfg-fmt
rev: v1.20.0
hooks:
- id: setup-cfg-fmt