-
Notifications
You must be signed in to change notification settings - Fork 61
Expand file tree
/
Copy pathlefthook.yml
More file actions
34 lines (34 loc) · 825 Bytes
/
Copy pathlefthook.yml
File metadata and controls
34 lines (34 loc) · 825 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
pre-commit:
commands:
uv-lock:
glob: "pyproject.toml"
run: uv lock
uv-sort:
glob: "pyproject.toml"
run: uvx uv-sort
stage_fixed: true
ruff:
glob: "*.py"
run: uv run ruff check --fix {staged_files}
stage_fixed: true
ruff-format:
glob: "*.py"
run: uv run ruff format {staged_files}
stage_fixed: true
type-check:
root: "frontend/"
glob: "*.{js,ts,vue}"
run: npm run type-check
eslint:
root: "frontend/"
glob: "*.{js,ts,vue}"
run: npx eslint --fix {staged_files}
stage_fixed: true
prettier:
root: "frontend/"
glob: "*.{js,ts,vue}"
run: npx prettier --write {staged_files}
stage_fixed: true
actionlint:
glob: ".github/workflows/*.yaml"
run: actionlint