-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
130 lines (120 loc) · 2.81 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
130 lines (120 loc) · 2.81 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
default_stages: [
pre-commit,
pre-push,
]
default_install_hook_types: [
pre-commit,
pre-push,
post-checkout,
post-merge,
post-rewrite,
]
fail_fast: true
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-yaml
- id: check-toml
- id: check-xml
- id: check-json
exclude: ".*\\.vscode/"
- id: end-of-file-fixer
- id: trailing-whitespace
- id: detect-aws-credentials
args: [
--allow-missing-credentials,
]
- id: debug-statements
- id: check-merge-conflict
args: [
--assume-in-merge,
]
- id: detect-private-key
- id: check-case-conflict
- id: check-illegal-windows-names
- id: check-added-large-files
args: [
--maxkb=1000,
]
- id: file-contents-sorter
files: "\\.vscode/(boilerplate-words|project-related-words)\\.txt"
args: [
--ignore-case,
]
- repo: https://github.com/gitleaks/gitleaks
rev: v8.30.1
hooks:
- id: gitleaks
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.16.1
hooks:
- id: ruff-check
args: [
--fix,
]
- id: ruff-format
- repo: https://github.com/streetsidesoftware/cspell-cli
rev: v10.0.1
hooks:
- id: cspell
- repo: https://github.com/asottile/add-trailing-comma
rev: v4.0.0
hooks:
- id: add-trailing-comma
- repo: https://github.com/astral-sh/uv-pre-commit
rev: 0.12.1
hooks:
- id: uv-lock
- id: uv-sync
args: [
--all-groups,
--all-extras,
]
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.49.1
hooks:
- id: markdownlint
args: [
--fix,
]
- repo: https://github.com/rhysd/actionlint
rev: v1.7.12
hooks:
- id: actionlint
- repo: https://github.com/adrienverge/yamllint
rev: v1.38.0
hooks:
- id: yamllint
- repo: https://github.com/renovatebot/pre-commit-hooks
rev: 44.7.0
hooks:
- id: renovate-config-validator
language: bun
language_version: bun@1
args: [
--strict,
]
- repo: local
hooks:
- id: mypy
name: Run mypy
entry: inv mypy.run
language: system
pass_filenames: false
types: [ file ]
stages: [ pre-push ]
- id: doc-build-verify
name: Verify that docs could be build
entry: inv docs.build
language: system
pass_filenames: false
types: [ file ]
stages: [ pre-push ]
- id: check-list
name: Short start up check
entry: inv -l
language: system
pass_filenames: false
types: [ file ]
stages: [ pre-push ]