-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
52 lines (52 loc) · 1.29 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
repos:
- repo: meta
hooks:
- id: check-hooks-apply
- id: check-useless-excludes
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: end-of-file-fixer
# See <https://docs.python.org/3/library/re.html#re.X>
exclude: |
(?x)^(
docs/(
numerary-encumbered\.svg|
perf_.*\.txt
)
)$
- id: mixed-line-ending
- id: trailing-whitespace
# See <https://docs.python.org/3/library/re.html#re.X>
exclude: |
(?x)^(
docs/(
numerary-encumbered\.svg|
perf_.*\.txt
)
)$
- id: check-added-large-files
- id: check-case-conflict
# - id: check-executables-have-shebangs
- id: check-merge-conflict
- id: check-shebang-scripts-are-executable
- id: check-symlinks
- id: check-vcs-permalinks
- id: destroyed-symlinks
- id: detect-private-key
# - id: check-json
- id: check-toml
- id: check-xml
- id: check-yaml
- repo: https://github.com/psf/black
rev: 24.8.0
hooks:
- id: black
- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
- id: isort
- repo: https://github.com/pycqa/flake8
rev: 7.1.0
hooks:
- id: flake8