forked from yt-project/yt
-
Notifications
You must be signed in to change notification settings - Fork 3
/
.pre-commit-config.yaml
39 lines (36 loc) · 1.17 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
# pre-commit 1.1.0 is required for `exclude`
# however `minimum_pre_commit_version` itself requires 1.15.0
minimum_pre_commit_version: "1.15.0"
# note: isort can't be applied to yt/__init__.py because it creates circular imports
exclude: "^(\
yt/extern\
|yt/frontends/stream/sample_data\
|yt/units\
|scripts\
|benchmark\
|setupext.py\
|yt/visualization/_colormap_data.py\
|yt/__init__.py\
)"
repos:
# Note that in rare cases, flynt may undo some of the formating from black.
# A stable configuration is run black last.
- repo: https://github.com/ikamensh/flynt
rev: '0.52' # keep in sync with tests/lint_requirements.txt
hooks:
- id: flynt
- repo: https://github.com/ambv/black
rev: 19.10b0 # keep in sync with tests/lint_requirements.txt
hooks:
- id: black
language_version: python3
- repo: https://github.com/timothycrosley/isort
rev: '5.6.4' # keep in sync with tests/lint_requirements.txt
hooks:
- id: isort
additional_dependencies: [toml]
- repo: https://gitlab.com/pycqa/flake8
rev: '3.8.1' # keep in sync with tests/lint_requirements.txt
hooks:
- id: flake8
additional_dependencies: [mccabe, flake8-bugbear]