Skip to content

Commit 61dea03

Browse files
dycwweb-flow
andauthored
Change to prek hooks & with priorities (#183)
Co-authored-by: github-actions-bot <noreply@github.com>
1 parent efe20f7 commit 61dea03

1 file changed

Lines changed: 48 additions & 5 deletions

File tree

.pre-commit-config.yaml

Lines changed: 48 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/dycw/actions
3-
rev: 0.15.1
3+
rev: 0.15.5
44
hooks:
55
- id: conformalize-repo
66
args:
@@ -27,28 +27,64 @@ repos:
2727
- --readme
2828
- --repo-name=template-python
2929
- --ruff
30+
priority: 10
3031
- id: format-requirements
32+
priority: 10
3133
- id: replace-sequence-strs
34+
priority: 10
3235
- id: touch-empty-py
36+
priority: 10
3337
- id: touch-py-typed
38+
priority: 10
3439
- id: update-requirements
35-
- repo: https://github.com/pre-commit/pre-commit-hooks
36-
rev: v6.0.0
40+
priority: 10
41+
- repo: builtin
3742
hooks:
43+
- id: check-added-large-files
44+
priority: 20
45+
- id: check-case-conflict
46+
priority: 20
3847
- id: check-executables-have-shebangs
48+
priority: 20
49+
- id: check-json
50+
priority: 20
51+
- id: check-json5
52+
priority: 20
3953
- id: check-merge-conflict
54+
priority: 20
4055
- id: check-symlinks
41-
- id: destroyed-symlinks
56+
priority: 20
57+
- id: check-toml
58+
priority: 20
59+
- id: check-xml
60+
priority: 20
61+
- id: check-yaml
62+
priority: 20
4263
- id: detect-private-key
64+
priority: 20
4365
- id: end-of-file-fixer
66+
priority: 10
67+
- id: fix-byte-order-marker
68+
priority: 10
4469
- id: mixed-line-ending
4570
args:
4671
- --fix=lf
72+
priority: 10
4773
- id: no-commit-to-branch
74+
priority: 20
75+
- id: trailing-whitespace
76+
priority: 10
77+
- repo: https://github.com/pre-commit/pre-commit-hooks
78+
rev: v6.0.0
79+
hooks:
80+
- id: check-illegal-windows-names
81+
priority: 20
82+
- id: destroyed-symlinks
83+
priority: 20
4884
- id: pretty-format-json
4985
args:
5086
- --autofix
51-
- id: trailing-whitespace
87+
priority: 10
5288
- repo: local
5389
hooks:
5490
- id: prettier
@@ -58,21 +94,26 @@ repos:
5894
types_or:
5995
- markdown
6096
- yaml
97+
priority: 10
6198
- repo: https://github.com/astral-sh/ruff-pre-commit
6299
rev: v0.14.13
63100
hooks:
64101
- id: ruff-check
65102
args:
66103
- --fix
104+
priority: 20
67105
- id: ruff-format
106+
priority: 10
68107
- repo: https://github.com/scop/pre-commit-shfmt
69108
rev: v3.12.0-2
70109
hooks:
71110
- id: shfmt
111+
priority: 10
72112
- repo: https://github.com/koalaman/shellcheck-precommit
73113
rev: v0.11.0
74114
hooks:
75115
- id: shellcheck
116+
priority: 20
76117
- repo: https://github.com/compwa/taplo-pre-commit
77118
rev: v0.9.3
78119
hooks:
@@ -84,6 +125,7 @@ repos:
84125
- indent_entries=true
85126
- --option
86127
- reorder_keys=true
128+
priority: 10
87129
- repo: https://github.com/astral-sh/uv-pre-commit
88130
rev: 0.9.26
89131
hooks:
@@ -94,3 +136,4 @@ repos:
94136
- highest
95137
- --prerelease
96138
- disallow
139+
priority: 10

0 commit comments

Comments
 (0)