-
Notifications
You must be signed in to change notification settings - Fork 28
/
.pre-commit-config.yaml
46 lines (45 loc) · 1.02 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
exclude: >
(?x)(
\.mypy_cache/
| \.pytest_cache/
| \.venv/
| build/
| dist/
| docs/_build/
| notebooks/
| \S+\.egg-info/
)
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-yaml
- id: check-toml
- id: check-json
- id: pretty-format-json
args: ["--autofix"]
- id: end-of-file-fixer
- id: trailing-whitespace
args: ["--markdown-linebreak-ext=md"]
- repo: local
hooks:
- id: isort
name: isort
entry: poetry run isort
types: [python]
language: system
- id: black
name: black
entry: poetry run black
types: [python]
language: system
- id: flake8
name: flake8
entry: poetry run flake8
types: [python]
language: system
- id: mypy
name: mypy
entry: poetry run mypy
types: [python]
language: system