-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
58 lines (58 loc) · 1.61 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
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/SimonBiggs/nbstripout
rev: 0a4fa37151ce3c2fb522bf64469224c831a41773
hooks:
- id: nbstripout
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.3.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
exclude: ^.*demographic\.000000$
- id: check-yaml
- id: check-toml
- id: check-added-large-files
args: ["--maxkb", "500"]
exclude: ^.*yarn-.*cjs$
- repo: https://github.com/timothycrosley/isort
rev: 5.12.0
hooks:
- id: isort
additional_dependencies: ["toml"]
args: ["--profile", "black"]
# files: ^./.*\.py$
- repo: https://github.com/ambv/black
rev: 23.3.0
hooks:
- id: black
args: ["-l", "127"]
- repo: https://github.com/floatingpurr/sync_with_poetry
rev: 1.1.0
hooks:
- id: sync_with_poetry
args: [] # optional args
- repo: https://github.com/pycqa/flake8
rev: 7.1.1 # Use the ref you want to point at
hooks:
- id: flake8
name: flake8 (strict)
args: [
"--count",
"--select=E9,F63,F7,F82",
"--show-source",
"--statistics",
"./"
]
exclude: ^(.venv/|docs/|tests/|setup.py)
- id: flake8
name: flake8 (relaxed)
args: [
"--count",
"--extend-ignore=E203",
"--max-line-length=127",
"--statistics",
"./"
]
exclude: ^(.venv/|docs/|tests/|setup.py)