-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
174 lines (173 loc) · 4.94 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
174 lines (173 loc) · 4.94 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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
default_language_version:
python: python3.14
repos:
- repo: local
hooks:
- id: prek-auto-update
name: prek-auto-update
entry: uv run prek auto-update
language: system
pass_filenames: false
always_run: true
stages: [pre-commit]
fail_fast: true
- repo: https://github.com/bwhmather/ssort
rev: 0.16.0
hooks:
- id: ssort
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: fix-byte-order-marker
- id: check-merge-conflict
- id: end-of-file-fixer
exclude: ^static/.*\.svg$
- id: trailing-whitespace
- id: mixed-line-ending
exclude: ^static/.*\.svg$
- id: check-yaml
- id: check-toml
- id: check-added-large-files
exclude: ^tests/media/.*\.cbz$
- id: debug-statements
language_version: python3.14
- id: check-executables-have-shebangs
- id: check-shebang-scripts-are-executable
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.11
hooks:
- id: ruff-check
language_version: python3.14
fail_fast: true
args: [--fix, --exclude, typings]
files: ^(src|tests)/.*\.py$
- id: ruff-format
language_version: python3.14
fail_fast: true
args: [--exclude, typings]
files: ^(src|tests)/.*\.py$
- id: ruff-check
name: ruff-check-post-format
language_version: python3.14
args: [--exclude, typings]
files: ^(src|tests)/.*\.py$
- repo: https://github.com/google/yamlfmt
rev: v0.21.0
hooks:
- id: yamlfmt
files: \.(yml|yaml)$
- repo: https://github.com/adrienverge/yamllint
rev: v1.38.0
hooks:
- id: yamllint
files: \.(yml|yaml)$
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.11.0.1
hooks:
- id: shellcheck
- repo: https://github.com/scop/pre-commit-shfmt
rev: v3.13.1-1
hooks:
- id: shfmt
- repo: https://github.com/crate-ci/typos
rev: v1.45.1
hooks:
- id: typos
args: [--diff]
- repo: https://github.com/executablebooks/mdformat
rev: 1.0.0
hooks:
- id: mdformat
files: \.md$
- repo: https://github.com/DavidAnson/markdownlint-cli2
rev: v0.22.0
hooks:
- id: markdownlint-cli2
- repo: https://github.com/ComPWA/taplo-pre-commit
# toml formatter
rev: v0.9.3
hooks:
- id: taplo-format
- id: taplo-lint
- repo: https://github.com/asottile/pyupgrade
rev: v3.21.2
hooks:
- id: pyupgrade
language_version: python3.14
args: [--py314-plus, --keep-runtime-typing]
files: ^(src|tests)/.*\.py$
- repo: https://github.com/hadialqattan/pycln
rev: v2.6.0
hooks:
- id: pycln
language_version: python3.14
args: [src, tests]
pass_filenames: false
always_run: true
stages: [pre-commit]
- repo: local
hooks:
- id: autopep695-format
name: autopep695-format
entry: uvx autopep695 format
language: system
files: ^(src|tests)/.*\.py$
stages: [pre-commit]
- id: vulture
name: vulture
entry: |
uvx --python 3.14 vulture src --min-confidence 80 --ignore-names
dst,secure,httponly,samesite,unc_path,package_family_name,logo44x44,a,n,py,exc_type,tb
language: system
pass_filenames: false
always_run: true
stages: [pre-commit]
- id: deptry
name: deptry
entry: uvx deptry . --ignore DEP001,DEP002,DEP003
language: system
pass_filenames: false
always_run: true
stages: [pre-commit]
- id: refurb
name: refurb
entry: uvx ruff check --select FURB --ignore FURB110 src tests
language: system
pass_filenames: false
always_run: true
stages: [pre-commit]
- id: basedpyright
name: basedpyright
entry: uvx basedpyright
language: system
pass_filenames: false
always_run: true
stages: [pre-commit]
- id: pyrefly-check
name: pyrefly-check
entry: uvx pyrefly check src tests
language: system
pass_filenames: false
always_run: true
stages: [pre-commit]
- id: pip-audit
name: pip-audit
entry: uvx pip-audit
language: system
pass_filenames: false
always_run: true
stages: [pre-commit]
- id: coverage-100
name: coverage-100
entry: uv run pytest --doctest-modules --cov=src/pyptmpl --cov-report=term-missing --cov-fail-under=100 src/pyptmpl
language: system
pass_filenames: false
always_run: true
stages: [pre-commit]
- repo: https://github.com/Yelp/detect-secrets
rev: v1.5.0
hooks:
- id: detect-secrets
language_version: python3.14
args: ["--baseline", ".secrets.baseline"]
stages: [pre-commit]