-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
34 lines (31 loc) · 1.01 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0 # Use the latest version
hooks:
- id: trailing-whitespace
- id: check-yaml
- id: end-of-file-fixer
- id: check-added-large-files
- repo: https://github.com/psf/black
rev: 24.10.0 # Use the latest version
hooks:
- id: black
name: black - Firewall app (Poetry)
types: [python]
- repo: https://github.com/pycqa/isort
rev: 5.13.2 # Use the latest version
hooks:
- id: isort
name: isort - Firewall app (Poetry)
types: [python]
args: ["--profile", "black"] # REQUIRED, otherwise might have infinite loop
# because of black-isort disagreement
- repo: https://github.com/pycqa/flake8
rev: 7.1.1 # Use the latest version
hooks:
- id: flake8
name: flake8 - Firewall app (Poetry)
args: [
'--max-line-length=110',
'--ignore=E203,W503' # black compatibility
]