-
Notifications
You must be signed in to change notification settings - Fork 14
/
.pre-commit-config.yaml
67 lines (61 loc) · 1.87 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
repos:
- repo: https://github.com/Yelp/detect-secrets
rev: v1.4.0
hooks:
- id: detect-secrets
args: ['--baseline', '.secrets.baseline']
exclude: .*/tests/.*
additional_dependencies: ['gibberish-detector']
- repo: https://github.com/psf/black-pre-commit-mirror
# when updating this version, also update blacken-docs hook below
rev: 23.11.0
hooks:
- id: black
- repo: https://github.com/adamchainz/blacken-docs
rev: 1.16.0
hooks:
- id: blacken-docs
additional_dependencies: ['black==23.11.0']
- repo: https://github.com/PyCQA/isort
rev: 5.12.0
hooks:
- id: isort
- repo: https://github.com/PyCQA/flake8
rev: 6.1.0
hooks:
- id: flake8
additional_dependencies: [
# 'darglint~=1.5.4',
'flake8-absolute-import~=1.0',
'flake8-blind-except~=0.2.1',
'flake8-builtins~=2.2.0',
'flake8-cognitive-complexity~=0.1.0',
'flake8-comprehensions~=3.14.0',
# 'flake8-docstrings~=1.7.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.5.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/python-jsonschema/check-jsonschema
rev: 0.27.1
hooks:
- id: check-dependabot
- id: check-github-workflows