-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
64 lines (44 loc) · 1.28 KB
/
Makefile
File metadata and controls
64 lines (44 loc) · 1.28 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
PYTHON ?= python
UV ?= uv
.PHONY: install install-dev install-uv install-dev-uv lint lint-uv test test-uv test-cov test-cov-uv build build-uv run run-uv audit-uv up down benchmark clean
install:
$(PYTHON) -m pip install -r requirements.txt
$(PYTHON) -m pip install -e .
install-dev:
$(PYTHON) -m pip install -r requirements.txt
$(PYTHON) -m pip install -e .[dev]
install-uv:
$(UV) sync
install-dev-uv:
$(UV) sync --extra dev
lint:
ruff check src tests
lint-uv:
$(UV) run ruff check src tests
test:
pytest
test-uv:
$(UV) run pytest
test-cov:
pytest --cov=src/secnodeapi --cov-report=term-missing --cov-fail-under=70
test-cov-uv:
$(UV) run pytest --cov=src/secnodeapi --cov-report=term-missing --cov-fail-under=70
build:
$(PYTHON) -m pip install build
$(PYTHON) -m build
build-uv:
$(UV) build
run:
secnodeapi --help
run-uv:
$(UV) run secnodeapi --help
audit-uv:
$(UV) run pip-audit
up:
docker compose -f deploy/docker-compose.yml up --build
down:
docker compose -f deploy/docker-compose.yml down
benchmark:
@echo "Benchmark fixtures and calibration harness live in benchmarks/"
clean:
$(PYTHON) -c "import shutil, pathlib; [shutil.rmtree(p, ignore_errors=True) for p in ['dist','build','.pytest_cache','htmlcov']]; [q.unlink() for q in pathlib.Path('.').rglob('*.pyc')]"