-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
70 lines (66 loc) · 1.44 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
# .pre-commit-config.yaml
default_stages: [ pre-commit ]
repos:
-
repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
-
id: fix-byte-order-marker
-
id: end-of-file-fixer
-
id: check-merge-conflict
-
id: check-symlinks
-
id: debug-statements
-
id: mixed-line-ending
-
id: requirements-txt-fixer
-
id: check-added-large-files
-
id: detect-private-key
-
id: trailing-whitespace
# isort
-
repo: https://github.com/asottile/seed-isort-config
rev: v2.2.0
hooks:
-
id: seed-isort-config
# black
-
repo: https://github.com/ambv/black
rev: 24.3.0
hooks:
-
id: black
args:
- --line-length=130
- --include='\.pyi?$'
- --exclude="""\.git |
\.__pycache__|
examples|
env|
dist|
_build"""
# flake8
-
repo: https://github.com/PyCQA/flake8
rev: 7.0.0
hooks:
-
id: flake8
additional_dependencies:
- flake8-bugbear
- flake8-implicit-str-concat
args:
- "--max-line-length=130"
- "--select=B,C,E,F,W,T4,B9"
- "--ignore=B006,B008,B010,B903,B907,E203,E231,E501,E701,W503"
- "--builtins=F821, F405"
- "--exclude=.git,__pycache__,env,dist,_build"