Repository navigation
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
118 lines (118 loc) · 3.65 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
118 lines (118 loc) · 3.65 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
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
exclude: '.basedpyright/baseline.json'
- 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
- id: pretty-format-json
exclude: '.basedpyright/baseline.json'
args:
- --indent
- '4'
- --autofix
- --no-sort-keys
- id: check-toml
- repo: https://github.com/bwhmather/ssort
rev: e13cd1ee686c9ed9a6c582a4a36b047ef5e1622c # frozen: 0.19.0
hooks:
- id: ssort
- 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: f22ea0651f4355c655cc581f67813c991c74a312 # frozen: v3.22.0
hooks:
- id: pyupgrade
args:
- --py311-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: 57b21406f092110c18776e39b0bda50d37c945c8 # frozen: v2.4.3
hooks:
- id: codespell
additional_dependencies:
- tomli ; python_version < '3.11'
- repo: https://github.com/commitizen-tools/commitizen
rev: 0c47f153e36705819b4d819508fa913d979c1ccc # frozen: v4.19.3
hooks:
- id: commitizen
- repo: local
hooks:
- id: hatch-types
entry: hatch run types:check
language: system
name: hatch types
require_serial: true
types:
- python
- repo: https://github.com/andreoliwa/nitpick
rev: '3ba97e5d57882cca6ef1eccaae683753c8a26630' # frozen: v0.38.1
hooks:
- id: nitpick
- repo: "https://github.com/TotallyNotRobots/check-spdx-header"
rev: '7b32924b95a8a529c388fd5abf41dcca901b42bc' # frozen: 0.3.2
hooks:
- id: fix-spdx-header
- repo: https://github.com/PyCQA/autoflake
rev: '6d9dd2716540ab776f29c7b896cd3052ef4619b2' # frozen: v2.4.0
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/astral-sh/ruff-pre-commit
rev: '25bcf95026b96e2dd3c0aec3090c3d6ef6ca2e6c' # frozen: v0.17.3
hooks:
- id: ruff-check
args:
- --fix
types_or:
- python
- pyi
- pyproject
- id: ruff-format
minimum_pre_commit_version: 4.3.0
default_install_hook_types:
- pre-commit
- pre-push
- commit-msg