-
Notifications
You must be signed in to change notification settings - Fork 6
/
.pre-commit-config.yaml
83 lines (75 loc) · 2.23 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
81
82
83
repos:
- repo: https://github.com/Yelp/detect-secrets
rev: v1.4.0
hooks:
- id: detect-secrets
args: ['--baseline', '.secrets.baseline']
exclude: .*/tests/.*
- repo: https://github.com/psf/black
# when updating this version, also update blacken-docs hook below
rev: 23.7.0
hooks:
- id: black
- repo: https://github.com/asottile/blacken-docs
rev: v1.12.1
hooks:
- id: blacken-docs
additional_dependencies: ['black==23.7.0']
- repo: https://github.com/timothycrosley/isort
rev: 5.12.0
hooks:
- id: isort
- repo: local
hooks:
- id: mypy
name: Run mypy
entry: python -m mypy src/
language: system
types: [python]
pass_filenames: false
- repo: https://github.com/PyCQA/flake8
rev: 6.0.0
hooks:
- id: flake8
additional_dependencies: [
# 'darglint~=1.5.4',
'flake8-absolute-import~=1.0',
'flake8-blind-except~=0.2.1',
'flake8-builtins~=1.5.3',
'flake8-cognitive-complexity==0.1.0',
'flake8-comprehensions~=3.8.0',
# 'flake8-docstrings~=1.5.0',
'flake8-logging-format~=0.9.0',
'flake8-mutable~=1.2.0',
'flake8-print~=4.0.0',
'flake8-printf-formatting~=1.1.2',
'flake8-pytest-style~=1.6.0',
'flake8-quotes~=3.3.1',
'flake8-tuple~=0.4.1',
'pep8-naming~=0.12.1'
]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: mixed-line-ending
args: ['--fix=lf']
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-merge-conflict
- id: check-json
- id: check-toml
- id: check-xml
- id: check-yaml
- id: debug-statements
- repo: https://github.com/econchick/interrogate
rev: 1.5.0
hooks:
- id: interrogate
pass_filenames: false
args: [-c, setup.cfg]
additional_dependencies: ['setuptools'] # setuptools for pkg_resources for python 3.12
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.27.1
hooks:
- id: check-dependabot
- id: check-github-workflows