-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
63 lines (58 loc) · 1.9 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
63 lines (58 loc) · 1.9 KB
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
61
62
63
repos:
- repo: https://github.com/pycqa/isort
rev: 9.0.0a3
hooks:
- id: isort
args: [
"--filter-files", # skip files that are excluded in config file
"--profile=black",
"--skip=migrations"
]
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 26.3.1
hooks:
- id: black
- repo: https://github.com/pre-commit/mirrors-mypy
rev: "v2.0.0" # Use the sha / tag you want to point at
hooks:
- id: mypy
args: [
"--allow-untyped-globals",
"--ignore-missing-imports",
# ``xontrib/`` is a PEP 420 namespace package (shared with every
# other xontrib-* plugin), so we cannot add an ``__init__.py``.
# Without these two flags mypy 2.x discovers ``xontrib/mplhooks.py``
# twice — once as ``xontrib.mplhooks`` (from the project root) and
# once as ``mplhooks`` (via sys.path) — and aborts.
"--explicit-package-bases",
"--namespace-packages",
]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: trailing-whitespace
- id: check-yaml
- id: check-toml
- id: check-merge-conflict
- id: debug-statements
- id: check-added-large-files
- repo: https://github.com/pycqa/flake8
rev: "7.3.0" # pick a git hash / tag to point to
hooks:
- id: flake8
args: [ "--ignore=E501,W503,W504,E203,E251,E266,E401,E126,E124,C901" ]
additional_dependencies: [
'flake8-bugbear',
]
- repo: https://github.com/asottile/pyupgrade
rev: v3.21.2
hooks:
- id: pyupgrade
args:
- "--py311-plus"
- repo: https://github.com/compilerla/conventional-pre-commit
rev: v4.4.0
hooks:
- id: conventional-pre-commit
stages: [commit-msg]
args: [] # optional: list of Conventional Commits types to allow