-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
120 lines (120 loc) · 3.72 KB
/
.pre-commit-config.yaml
File metadata and controls
120 lines (120 loc) · 3.72 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
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: 3e8a8703264a2f4a69428a0aa4dcb512790b2c8c # frozen: v6.0.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: fb5ed1dd650d0920820506ea817bfd80942b9510 # frozen: 0.16.0
hooks:
- id: ssort
- repo: https://github.com/psf/black
rev: 782e5605c86aab56be6f905da10dcd3e463fd9c2 # frozen: 25.12.0
hooks:
- id: black
- repo: https://github.com/pycqa/isort
rev: 0a09c783808cfe77bb3269250f663ff733d23302 # frozen: 7.0.0
hooks:
- id: isort
- repo: https://github.com/pre-commit/pygrep-hooks
rev: 3a6eb0fadf60b3cccfd80bad9dbb6fae7e47b316
hooks:
- id: python-no-eval
- id: python-no-log-warn
- repo: https://github.com/ikamensh/flynt
rev: 97be693bf18bc2f050667dd282d243e2824b81e2 # frozen: 1.0.6
hooks:
- id: flynt
- repo: https://github.com/asottile/pyupgrade
rev: 75992aaa40730136014f34227e0135f63fc951b4 # frozen: v3.21.2
hooks:
- id: pyupgrade
args:
- --py310-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: 63c8f8312b7559622c0d82815639671ae42132ac # frozen: v2.4.1
hooks:
- id: codespell
additional_dependencies:
- tomli ; python_version < '3.11'
- repo: https://github.com/commitizen-tools/commitizen
rev: 9f3ec868c0429155a46b4819b625d47a8522a3d5 # frozen: v4.10.0
hooks:
- id: commitizen
- repo: local
hooks:
# - id: hatch-fmt
# entry: hatch fmt
# language: system
# name: hatch fmt
# types:
# - python
- id: hatch-types
entry: hatch run types:check
language: system
name: hatch types
types:
- python
- repo: https://github.com/andreoliwa/nitpick
rev: '3ba97e5d57882cca6ef1eccaae683753c8a26630' # frozen: v0.38.1
hooks:
- id: nitpick
- repo: https://github.com/PyCQA/autoflake
rev: '0544741e2b4a22b472d9d93e37d4ea9153820bb1' # frozen: v2.3.1
hooks:
- id: autoflake
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
rev: '19b28a9f0a0102b30776f054bea4176e7af50dbe' # frozen: v2.15.0
hooks:
- id: pretty-format-toml
args:
- --autofix
- --no-sort
- --trailing-commas
- --indent
- '4'
- --inline-comment-spaces
- '1'
- repo: https://github.com/TotallyNotRobots/check-spdx-header
rev: '676e6f28a70426914a2e286cbb53696fe2a19381' # frozen: 0.3.0
hooks:
- id: fix-spdx-header
minimum_pre_commit_version: 4.3.0
default_install_hook_types:
- pre-commit
- pre-push
- commit-msg