-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
59 lines (54 loc) · 1.49 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
default_stages: [commit]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: requirements-txt-fixer
- id: check-yaml
- id: end-of-file-fixer
exclude: tf$|j2$
- id: trailing-whitespace
exclude: tf$|j2$
- repo: https://github.com/psf/black
rev: 24.10.0
hooks:
- id: black
name: black formatting
# args: [--config=./pyproject.toml]
- repo: https://github.com/PyCQA/flake8
rev: 7.0.0
hooks:
- id: flake8
name: flake8 lint
args:
[
"--ignore=E203,E266,W503,F403",
'--exclude=".git, .mypy_cache, .pytest_cache, build, dist"',
"--max-line-length=120",
"--max-complexity=18",
'--select="B,C,E,F,W,T4,B9"',
]
additional_dependencies:
- flake8-broken-line
- flake8-bugbear
- flake8-comprehensions
- flake8-debugger
- flake8-string-format
- Flake8-pyproject
- repo: https://github.com/Yelp/detect-secrets
rev: v1.4.0
hooks:
- id: detect-secrets
args: ["--baseline", ".secrets.baseline"]
exclude: package.lock.json
- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
- id: isort
name: isort (python)
additional_dependencies: ["toml"]
- repo: https://github.com/floatingpurr/sync_with_poetry
rev: "1.1.0"
hooks:
- id: sync_with_poetry
args: []