-
Notifications
You must be signed in to change notification settings - Fork 2
/
.pre-commit-config.yaml
57 lines (56 loc) · 1.6 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
default_language_version:
python: python3
repos:
- repo: https://github.com/psf/black
rev: 24.1.1
hooks:
- id: black
exclude: ^(doc/|examples/)
args: [--skip-string-normalization]
- repo: https://github.com/myint/autoflake
rev: v2.2.1
hooks:
- id: autoflake
exclude: ^(doc/|examples/)
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
exclude: ^(doc/|examples/)
- id: end-of-file-fixer
exclude: ^(doc/|examples/)
- id: trailing-whitespace
exclude: ^(doc/|examples/)
- repo: https://github.com/PyCQA/flake8
rev: "7.0.0"
hooks:
- id: flake8
name: flake8 except __init__.py
exclude: (^(doc/|examples/)|/__init__\.py$)
additional_dependencies: ["flake8-bugbear==23.1.20"]
args: [--config, .flake8]
- repo: https://github.com/PyCQA/isort
rev: 5.13.2
hooks:
- id: isort
args: ["--profile", "black"]
name: isort except __init__.py
exclude: (^(doc/|examples/)|/__init__\.py$)
- repo: https://github.com/myint/docformatter
rev: v1.7.5
hooks:
- id: docformatter
exclude: ^(doc/|examples/)
args: ["--in-place", "--wrap-summaries=88"]
- repo: https://github.com/asottile/pyupgrade
rev: v3.15.0
hooks:
- id: pyupgrade
exclude: ^(doc/|examples/)
args: ["--py39-plus"]