-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
86 lines (85 loc) · 2.7 KB
/
.pre-commit-config.yaml
File metadata and controls
86 lines (85 loc) · 2.7 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
repos:
- repo: https://github.com/commitizen-tools/commitizen
rev: "2ca29f9297911f8f5a4e8f97100b7832f045e8d3" # frozen: v4.13.10
hooks:
- id: commitizen
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: "3e8a8703264a2f4a69428a0aa4dcb512790b2c8c" # frozen: v6.0.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/psf/black
rev: "c6755bb741b6481d6b3d3bb563c83fa060db96c9" # frozen: 26.3.1
hooks:
- id: black
- repo: https://github.com/pycqa/isort
rev: "a333737ed43df02b18e6c95477ea1b285b3de15a" # frozen: 8.0.1
hooks:
- id: isort
- repo: https://github.com/andreoliwa/nitpick
rev: "3ba97e5d57882cca6ef1eccaae683753c8a26630" # frozen: v0.38.1
hooks:
- id: nitpick
- repo: "https://github.com/TotallyNotRobots/check-spdx-header"
rev: '676e6f28a70426914a2e286cbb53696fe2a19381' # frozen: 0.3.0
hooks:
- id: fix-spdx-header
- repo: https://github.com/ikamensh/flynt
rev: "97be693bf18bc2f050667dd282d243e2824b81e2" # frozen: 1.0.6
hooks:
- id: flynt
- repo: https://github.com/codespell-project/codespell
rev: '2ccb47ff45ad361a21071a7eedda4c37e6ae8c5a' # frozen: v2.4.2
hooks:
- additional_dependencies:
- tomli ; python_version < '3.11'
id: codespell
- repo: https://github.com/asottile/pyupgrade
rev: '75992aaa40730136014f34227e0135f63fc951b4' # frozen: v3.21.2
hooks:
- id: pyupgrade
args:
- --py310-plus
- repo: https://github.com/PyCQA/autoflake
rev: 2d3853a9f31d97783fb2e181d41cd82a6babd666 # frozen: v2.3.3
hooks:
- id: autoflake
- repo: local
hooks:
- id: hatch-fmt
name: hatch fmt
entry: hatch fmt --check
language: system
types:
- python
pass_filenames: true
- id: hatch-types
name: hatch types
entry: hatch run types:check
language: system
types:
- python
pass_filenames: true
- 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/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'
minimum_pre_commit_version: 4.3.0
default_install_hook_types:
- pre-commit
- pre-push
- commit-msg