forked from button-box/button-box
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
24 lines (17 loc) · 1.22 KB
/
Copy pathMakefile
File metadata and controls
24 lines (17 loc) · 1.22 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
.PHONY: test syntax lint lint-python lint-shell lint-frontend check
test:
PYTHONDONTWRITEBYTECODE=1 python3 -m unittest discover -s tests -v
bun test tests/*.test.js
syntax:
PYTHONPYCACHEPREFIX=/tmp/messagebox-pycache python3 -m compileall -q messagebox tests scripts/install/audio_config.py scripts/install/tailscale_dashboard.py scripts/dev/release-manifest.py
for file in scripts/*.sh scripts/commands/* scripts/dev/onboard.sh scripts/dev/hardware-test.sh scripts/dev/reprovision.sh scripts/install/*.sh; do sh -n "$$file"; done
sh -n scripts/messageboxctl
bash -n messagebox/syncloop.sh
lint: lint-python lint-shell lint-frontend
lint-python:
uvx --from ruff==0.16.3 ruff check --target-version=py313 --select=E4,E7,E9,F messagebox tests scripts/install/audio_config.py scripts/install/tailscale_dashboard.py scripts/dev/release-manifest.py
lint-shell:
uvx --from shellcheck-py==0.11.0.1 shellcheck --exclude=SC1007,SC1091,SC2029 scripts/*.sh scripts/commands/* scripts/dev/onboard.sh scripts/dev/hardware-test.sh scripts/dev/reprovision.sh scripts/install/*.sh scripts/messageboxctl messagebox/syncloop.sh
lint-frontend:
bunx @biomejs/biome@2.5.9 lint --diagnostic-level=error messagebox/onboarding/static
check: syntax lint test