-
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: c6755bb741b6481d6b3d3bb563c83fa060db96c9 # frozen: 26.3.1
hooks:
- id: black
- repo: https://github.com/pycqa/isort
rev: dac090ce4d9ee313d086e2e89ab1acb8c2664fa1 # frozen: 9.0.0a3
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: 1743edbed52f3d61886b59d98a27164a8af29c0d # frozen: 0.4.1
hooks:
- id: auto-walrus
additional_dependencies:
- tomli ; python_version < '3.11'
- repo: https://github.com/codespell-project/codespell
rev: 2ccb47ff45ad361a21071a7eedda4c37e6ae8c5a # frozen: v2.4.2
hooks:
- id: codespell
additional_dependencies:
- tomli ; python_version < '3.11'
- repo: https://github.com/commitizen-tools/commitizen
rev: 460d83c603b0ddf80dc2a11d5e7ec2f464142737 # frozen: v4.15.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: '2d3853a9f31d97783fb2e181d41cd82a6babd666' # frozen: v2.3.3
hooks:
- id: autoflake
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
rev: '4380fbb73a154b5f5624794c1c78d9719ccc860f' # frozen: v2.16.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