forked from homeassistant-ai/ha-mcp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlefthook.yml
More file actions
30 lines (29 loc) · 929 Bytes
/
Copy pathlefthook.yml
File metadata and controls
30 lines (29 loc) · 929 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
pre-commit:
jobs:
- group:
parallel: true
jobs:
- name: ruff
glob: "**/*.py"
run: uv run ruff check {staged_files} --fix
stage_fixed: true
- name: ast-grep
glob: "src/ha_mcp/tools/**/*.py"
run: uv run ast-grep scan
- name: uv-lock
glob: "pyproject.toml"
run: uv lock
- group:
parallel: true
jobs:
- name: mypy
glob: "**/*.py"
run: uv run mypy src/ homeassistant-addon/ scripts/
- name: mypy-webhook-proxy
glob: "**/*.py"
run: uv run mypy homeassistant-addon-webhook-proxy/start.py
- name: unit-tests
glob:
- "**/*.py"
- "pyproject.toml"
run: cd tests && uv run pytest src/unit/ addon/test_addon_startup.py -n auto -m "not slow" --tb=short -q