forked from agoenergy/ptx-boa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
54 lines (50 loc) · 1.45 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
default_stages: [commit]
exclude: ^(data|tests|archive)/
repos:
# ============== PRE-COMMIT HOOKS ===============
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-added-large-files
- id: check-merge-conflict
- id: end-of-file-fixer
- id: fix-encoding-pragma
- id: mixed-line-ending
- id: no-commit-to-branch
# ==================== BLACK ====================
- repo: https://github.com/psf/black
rev: 23.11.0
hooks:
- id: black
args: ["--line-length", "88"]
- id: black-jupyter
# ==================== ISORT ====================
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
name: isort (python)
args: ["--profile", "black"]
# =================== FLAKE8 ====================
- repo: https://github.com/pycqa/flake8
rev: 6.1.0
hooks:
- id: flake8
additional_dependencies:
[
darglint,
flake8-bandit,
flake8-bugbear,
flake8-builtins,
flake8-comprehensions,
flake8-docstrings,
flake8-eradicate,
flake8-isort,
flake8-pytest-style,
]
args:
[
"--max-line-length=88",
"--extend-ignore=E203,DAR101,DAR201,I001,I005,D101,D103,D105,DAR401,B023,S603,S608,S101,S310,E402",
"--docstring-convention=numpy",
]