-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlefthook.yml
More file actions
43 lines (42 loc) · 1.01 KB
/
Copy pathlefthook.yml
File metadata and controls
43 lines (42 loc) · 1.01 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
pre-commit:
commands:
shellcheck:
glob:
- "*.{sh,bash}"
- "bin/*"
- "setup.sh"
exclude:
- "bin/nextdns-configure" # python
- "bin/cache-meter" # python
- "bin/codex-config" # python
run: mise x -- shellcheck {staged_files}
shfmt:
glob:
- "*.{sh,bash}"
- "bin/*"
- "setup.sh"
exclude:
- "bin/nextdns-configure" # python
- "bin/cache-meter" # python
- "bin/codex-config" # python
run: mise x -- shfmt -d -i 2 -ci {staged_files}
ruff:
glob:
- "*.py"
- "bin/nextdns-configure"
- "bin/cache-meter"
- "bin/codex-config"
run: mise x -- ruff check {staged_files}
taplo:
glob: "*.toml"
run: mise x -- taplo fmt --check {staged_files}
prettier:
glob:
- "*.md"
- "*.json"
- "*.{yml,yaml}"
run: mise x -- prettier --check {staged_files}
pre-push:
commands:
check:
run: mise x -- just check