-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlefthook.yml
More file actions
33 lines (32 loc) · 1.01 KB
/
lefthook.yml
File metadata and controls
33 lines (32 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
pre-commit:
commands:
format:
glob: "*.{js,ts,json,md}"
run: npm run format
stage_fixed: true
lint-node:
glob: "packages/node-commitlint/**/*.{js,ts}"
run: cd packages/node-commitlint && npm run lint
stage_fixed: true
lint-python:
glob: "packages/python-gitlint/**/*.py"
run: cd packages/python-gitlint && uv run black gitlint_rai/ tests/ && uv run isort gitlint_rai/ tests/
stage_fixed: true
test-node:
glob: "packages/node-commitlint/**/*.{js,ts}"
run: cd packages/node-commitlint && npm test
test-python:
glob: "packages/python-gitlint/**/*.py"
run: cd packages/python-gitlint && uv run pytest tests/ -v
update-npm-lock:
glob: "package.json"
run: npm install
stage_fixed: true
update-uv-lock:
glob: "packages/python-gitlint/pyproject.toml"
run: cd packages/python-gitlint && uv lock
stage_fixed: true
commit-msg:
commands:
commitlint:
run: npx --no-install commitlint --edit {1}