-
Notifications
You must be signed in to change notification settings - Fork 5
/
.pre-commit-config.yaml
60 lines (60 loc) · 1.7 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
59
60
default_language_version:
python: python3
repos:
- repo: https://github.com/psf/black
rev: 24.3.0
hooks:
- id: black
exclude: ^(dev/)
args: [--skip-string-normalization]
- repo: https://github.com/myint/autoflake
rev: v2.3.1
hooks:
- id: autoflake
exclude: ^(dev/)
args:
- --in-place
- --ignore-init-module-imports
- --remove-all-unused-imports
- --remove-duplicate-keys
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-toml
- id: check-yaml
- id: end-of-file-fixer
exclude: ^(dev/)
- id: trailing-whitespace
exclude: ^(dev/)
- repo: https://github.com/PyCQA/flake8
rev: "7.0.0"
hooks:
- id: flake8
name: flake8 except __init__.py
exclude: (^(dev/)|/__init__\.py$)
additional_dependencies: ["flake8-bugbear==23.1.20"]
args: [--config, dev/.flake8]
- id: flake8
exclude: ^(dev/)
name: flake8 only __init__.py
args: [--config, dev/.flake8, "--extend-ignore=F401"] # ignore unused imports in __init__.py
files: /__init__\.py$
- repo: https://github.com/PyCQA/isort
rev: 5.13.2
hooks:
- id: isort
args: ["--profile", "black"]
name: isort except __init__.py
exclude: (^(dev/)|/__init__\.py$)
- repo: https://github.com/myint/docformatter
rev: v1.7.5
hooks:
- id: docformatter
exclude: ^(dev/)
args: ["--in-place", "--wrap-summaries=88"]
- repo: https://github.com/asottile/pyupgrade
rev: v3.15.1
hooks:
- id: pyupgrade
exclude: ^(dev/)
args: ["--py37-plus"]