-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathlefthook.yml
More file actions
35 lines (33 loc) · 910 Bytes
/
lefthook.yml
File metadata and controls
35 lines (33 loc) · 910 Bytes
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
# yaml-language-server: $schema=https://json.schemastore.org/lefthook.json
assert_lefthook_installed: true
pre-commit:
parallel: false
piped: false
follow: true
commands:
# Unfortunatelly, rust-tools don't support filtering by {staged_files} lefthook variable
rustfmt:
root: 'src-tauri/'
glob: '*.rs'
run: cargo fmt -- --check
clippy:
root: 'src-tauri/'
glob: '*.rs'
run: cargo clippy
biome:
run: pnpm exec biome check --no-errors-on-unmatched --files-ignore-unknown=true -- {staged_files}
pre-push:
parallel: false
piped: false
follow: true
commands:
rustfmt:
root: 'src-tauri/'
glob: '*.rs'
run: cargo fmt -- --check
clippy:
root: 'src-tauri/'
glob: '*.rs'
run: cargo clippy
biome:
run: pnpm exec biome check --no-errors-on-unmatched --files-ignore-unknown=true -- {push_files}