forked from napari/napari
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
47 lines (45 loc) · 1.24 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
repos:
- repo: https://github.com/MarcoGorelli/absolufy-imports
rev: v0.3.1
hooks:
- id: absolufy-imports
exclude: _vendor|vendored|examples
- repo: https://github.com/hadialqattan/pycln
rev: v2.1.2
hooks:
- id: pycln
- repo: https://github.com/pycqa/isort
rev: 5.11.4
hooks:
- id: isort
exclude: _vendor|vendored|examples
- repo: https://github.com/psf/black
rev: 22.12.0
hooks:
- id: black
pass_filenames: true
exclude: _vendor|vendored|examples
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.0.206
hooks:
- id: ruff
exclude: _vendor|vendored
- repo: https://github.com/PyCQA/flake8
rev: 6.0.0
hooks:
- id: flake8
additional_dependencies: [flake8-typing-imports]
pass_filenames: true
# this seems to need to be here in addition to setup.cfg
exclude: _vendor|vendored|__init__.py|examples
- repo: https://github.com/asottile/pyupgrade
rev: v3.3.1
hooks:
- id: pyupgrade
args: ["--py38-plus", "--keep-runtime-typing"]
exclude: _vendor|vendored|examples
- repo: https://github.com/seddonym/import-linter
rev: v1.6.0
hooks:
- id: import-linter
stages: [manual]