forked from ocean-uhh/fetchAZA
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
57 lines (52 loc) · 1.36 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
57 lines (52 loc) · 1.36 KB
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
repos:
- repo: https://github.com/psf/black
rev: 24.3.0
hooks:
- id: black
language_version: python3
files: \.(py|ipynb)$
exclude: ^data/
- repo: https://github.com/codespell-project/codespell
rev: v2.2.6 # Check for the latest version
hooks:
- id: codespell
args: ["--ignore-words-list", "nd"] # Optional: ignore some false positives
# - repo: https://github.com/pycqa/isort
# rev: 5.13.2
# hooks:
# - id: isort
# language_version: python3
# files: \.(py|ipynb)$
# exclude: ^data/
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: end-of-file-fixer
files: \.(py|yaml|yml|ipynb)$
exclude: ^data/
- id: trailing-whitespace
files: \.(py|yaml|yml|ipynb)$
exclude: ^data/
- id: check-yaml
files: \.(yaml|yml)$
exclude: ^data/
- id: check-added-large-files
- repo: local
hooks:
- id: pytest
name: pytest
entry: pytest -q
language: system
types: [python]
exclude: ^data/
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.3.0
hooks:
- id: ruff
args: [
"--fix",
"--exit-zero",
"--select",
"E,F,W,C90,ANN,B,BLE,TRY,ARG,SLF",
]
exclude: ^data/