-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathlefthook.yml
38 lines (38 loc) · 965 Bytes
/
lefthook.yml
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
pre-commit:
commands:
poetry-check:
glob: "pyproject.toml"
run: poetry check
poetry-sort:
glob: "pyproject.toml"
run: poetry sort
stage_fixed: true
ruff:
glob: "*.py"
run: poetry run ruff check --fix {staged_files}
stage_fixed: true
ruff-format:
glob: "*.py"
run: poetry run ruff format {staged_files}
stage_fixed: true
pyupgrade:
glob: "*.py"
run: poetry run pyupgrade --py311-plus {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