forked from open-flight/openflight
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (29 loc) · 752 Bytes
/
Copy pathMakefile
File metadata and controls
37 lines (29 loc) · 752 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
35
36
37
.PHONY: test lint format dev build-ui start
## Run Python tests
test:
uv run pytest tests/ -v
## Run all linters (Python + UI)
lint:
uv run ruff check src/openflight/
uv run pylint src/openflight/ --fail-under=9
cd ui && npm run lint
## Auto-format Python code
format:
uv run ruff format src/openflight/
uv run ruff check --fix src/openflight/
## Start server in mock mode (no hardware needed)
dev:
scripts/start-kiosk.sh --mock
## Build the React UI
build-ui:
cd ui && npm install && npm run build
## Start the full application (requires hardware)
start:
scripts/start-kiosk.sh
## Install all dependencies (Python + UI)
install:
uv sync --group dev
cd ui && npm install
## Install pre-commit hooks
hooks:
uv run pre-commit install