-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
80 lines (70 loc) · 1.91 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
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
# - repo: https://github.com/Lucas-C/pre-commit-hooks-safety
# rev: v1.2.2
# hooks:
# - id: python-safety-dependencies-check
#
#- repo: https://github.com/markdownlint/markdownlint
# rev: v0.31.0
# hooks:
# - id: markdownlint
# files: \.md$
# args:
# - --git-recurse