-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
99 lines (98 loc) · 3.13 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: '2c9f875913ee60ca25ce70243dc24d5b6415598c' # frozen: v4.6.0
hooks:
- id: trailing-whitespace
args:
- --markdown-linebreak-ext=md,markdown
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- id: check-ast
- id: fix-byte-order-marker
- id: check-merge-conflict
- id: debug-statements
- id: detect-private-key
- id: check-builtin-literals
- id: check-case-conflict
- id: check-docstring-first
- id: check-executables-have-shebangs
- id: check-shebang-scripts-are-executable
- id: check-symlinks
- id: mixed-line-ending
args:
- --fix=lf
- id: check-json
exclude: ^\.(vscode|devcontainer)/
- id: pretty-format-json
exclude: ^\.(vscode|devcontainer)/
args:
- --indent
- '4'
- --autofix
- --no-sort-keys
- id: check-toml
- repo: https://github.com/bwhmather/ssort
rev: '202524364c6ba81752b4fa9c77f16c9ccd5a5e28' # frozen: 0.13.0
hooks:
- id: ssort
- repo: https://github.com/psf/black
rev: '3702ba224ecffbcec30af640c149f231d90aebdb' # frozen: 24.4.2
hooks:
- id: black
- repo: https://github.com/pycqa/isort
rev: 'c235f5e450b4b84e58d114ed4c589cbf454175a3' # frozen: 5.13.2
hooks:
- id: isort
- repo: https://github.com/pre-commit/pygrep-hooks
rev: '3a6eb0fadf60b3cccfd80bad9dbb6fae7e47b316' # frozen: v1.10.0
hooks:
- id: python-no-eval
- id: python-no-log-warn
- repo: https://github.com/ikamensh/flynt
rev: '651c822fdcf45fffcf9743dc755085f32acb65e3' # frozen: 1.0.1
hooks:
- id: flynt
- repo: https://github.com/asottile/pyupgrade
rev: '12af25eb252deaaecb6b259df40d01f42e716dc3' # frozen: v3.15.2
hooks:
- id: pyupgrade
args:
- --py38-plus
- repo: https://github.com/MarcoGorelli/auto-walrus
rev: 'ba0661836089a532a710f68713a3e3e53f7f0113' # frozen: 0.3.4
hooks:
- id: auto-walrus
additional_dependencies:
- tomli ; python_version < '3.11'
- repo: https://github.com/codespell-project/codespell
rev: '193cd7d27cd571f79358af09a8fb8997e54f8fff' # frozen: v2.3.0
hooks:
- id: codespell
additional_dependencies:
- tomli ; python_version < '3.11'
- repo: https://github.com/commitizen-tools/commitizen
rev: 'e9aa5d979ea6fd14dcf59c6bd3836bef17d386c1' # frozen: v3.27.0
hooks:
- id: commitizen
- repo: local
hooks:
- id: mypy
entry: hatch run types:check
language: system
name: mypy
types:
- python
- repo: https://github.com/andreoliwa/nitpick
rev: '36d4912df1f0bd2ed8cc535b57c5ba3b09ce3d46' # frozen: v0.35.0
hooks:
- id: nitpick
- repo: "https://github.com/TotallyNotRobots/check-spdx-header"
rev: '2a52cf804e6dedd045e765185382d4f916ae2f3f' # frozen: 0.1.0a2
hooks:
- id: fix-spdx-header
minimum_pre_commit_version: 2.18.0
default_install_hook_types:
- pre-commit
- pre-push
- commit-msg