-
Notifications
You must be signed in to change notification settings - Fork 560
Expand file tree
/
Copy pathlefthook.yaml
More file actions
80 lines (75 loc) · 2.19 KB
/
Copy pathlefthook.yaml
File metadata and controls
80 lines (75 loc) · 2.19 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
lefthook: pixi run --no-progress --environment=lefthook lefthook
no_auto_install: true
templates:
run: run --environment=default --quiet --no-progress
colors: true
output:
- meta # Print lefthook version
- summary # Print summary block (successful and failed steps)
- empty_summary # Print summary heading when there are no steps to run
# - success # Print successful steps
# - failure # Print failed steps printing
# - execution # Print any execution logs
# - execution_out # Print execution output
# - execution_info # Print `EXECUTE > ...` logging
- skips # Print "skip" (i.e. no files matched)
pre-commit:
parallel: true
jobs:
- name: actionlint
run: pixi {run} actionlint
- name: zizmor
run: pixi {run} zizmor --no-progress
- name: cargo-fmt
glob: "*.rs"
stage_fixed: true
run: pixi {run} cargo-fmt
- name: ruff
glob: "*.{py,pyi}"
stage_fixed: true
group:
piped: true
jobs:
- name: ruff lint
run: pixi {run} ruff-lint {staged_files}
- name: ruff format
run: pixi {run} ruff-fmt {staged_files}
- name: cargo-shear
glob: "*.rs,Cargo.toml"
stage_fixed: true
run: pixi {run} cargo-shear
- name: shell-format
glob: "*.{sh, bash}"
run: pixi {run} shell-fmt {staged_files}
- name: tombi
stage_fixed: true
glob: "*.toml"
exclude:
- schema/examples/invalid/*.toml
run: pixi {run} toml-fmt {staged_files}
- name: dprint
glob: "*.{yaml,yml}"
group:
jobs:
- name: dprint check
run: pixi {run} dprint-check {staged_files}
- name: dprint fmt
run: pixi {run} dprint-fmt {staged_files}
stage_fixed: true
- name: typos
stage_fixed: true
run: pixi {run} typos
- name: typecheck-python
glob: "*.{py,pyi}"
run: pixi {run} typecheck-python
pre-push:
jobs:
- name: cargo-clippy
glob: "*.rs"
run: pixi {run} cargo-clippy
- name: cargo-deny
glob: "Cargo.lock,Cargo.toml"
stage_fixed: true
run: pixi {run} cargo-deny
- name: check-openssl
run: pixi {run} check-openssl