Repository navigation
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
143 lines (125 loc) · 3.92 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
143 lines (125 loc) · 3.92 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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
default_install_hook_types: [pre-commit, commit-msg]
default_language_version:
python: python3.15
default_stages: [pre-commit, pre-merge-commit, manual]
repos:
- repo: https://github.com/astral-sh/uv-pre-commit
rev: 0.13.0
hooks:
- id: uv-lock
always_run: true
- repo: https://github.com/gitleaks/gitleaks
rev: v8.30.1
hooks:
- id: gitleaks
- repo: https://github.com/codespell-project/codespell
rev: v2.4.3
hooks:
- id: codespell
- repo: https://github.com/tombi-toml/tombi-pre-commit
rev: v1.8.1
hooks:
- exclude: \A.+\.lock\Z
id: tombi-format
- id: tombi-lint
- repo: https://github.com/tsvikas/sync-with-uv
rev: v0.6.0
hooks:
- id: sync-with-uv
- repo: https://github.com/kjanat/actionlint
rev: v1.17.0
hooks:
- id: actionlint-shellcheck
args: [-pyflakes=]
- repo: https://github.com/zizmorcore/zizmor-pre-commit
rev: v1.30.1
hooks:
- id: zizmor
args: [--no-progress, --fix, --persona=auditor]
- repo: https://github.com/dotenv-linter/dotenv-linter
rev: v4.0.0
hooks:
- id: dotenv-linter
args: [fix, --no-backup]
- repo: https://github.com/hadolint/hadolint
rev: v2.15.1
hooks:
- id: hadolint-docker
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.38.0
hooks:
- id: yamllint
args: [--strict]
- repo: https://github.com/renovatebot/pre-commit-hooks
rev: 44.150.1
hooks:
- id: renovate-config-validator
args: [--strict]
stages: [manual]
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.38.2
hooks:
- id: check-jsonschema
args: [--schemafile, 'https://json.schemastore.org/yamllint.json'] # yamllint disable-line rule:quoted-strings
files: ^\.yamllint\.yaml$ # yamllint disable-line rule:key-ordering
name: Check yamllint configuration file
types: [yaml]
- repo: https://github.com/jorisroovers/gitlint
rev: v0.19.1
hooks:
- id: gitlint
- id: gitlint-ci
- repo: builtin
hooks:
- id: check-added-large-files
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: check-illegal-windows-names
- id: check-json
- id: check-jsonc
- id: check-merge-conflict
- id: check-shebang-scripts-are-executable
- id: check-symlinks
- id: check-toml
- id: check-vcs-permalinks
- id: check-xml
- id: check-yaml
- id: destroyed-symlinks
- id: detect-private-key
- id: end-of-file-fixer
- id: fix-byte-order-marker
- id: mixed-line-ending
args: [--fix=lf]
- id: pretty-format-json
args: [--autofix, --indent, "4"]
- id: require-filename-pattern
files: (^|/)tests/(?!(?:.+/)?_[a-z_]+/).+\.py$ # yamllint disable-line rule:key-ordering
args:
- ^test_.*\.py$
- ^__init__\.py$
- ^conftest\.py$
- ^_.*\.py$
- id: trailing-whitespace
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
rev: v2.16.0
hooks:
- id: pretty-format-ini
args: [--autofix]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.17.0
hooks:
- id: ruff-check
args: [--fix]
- id: ruff-format
- repo: https://github.com/pycqa/flake8
rev: 7.4.1
hooks:
- id: flake8
additional_dependencies: [flake8-pyproject, flake8-carrot] # yamllint disable-line rule:key-ordering
- repo: https://github.com/google/yamlfmt
rev: v0.21.0
hooks:
- entry: yamlfmt
id: yamlfmt
pass_filenames: true
types: [yaml]