chore(v2): establish protocol and test foundation

This commit is contained in:
2026-07-27 18:44:47 +02:00
parent 33b0c21292
commit 791f4526f9
86 changed files with 4060 additions and 2582 deletions
+28
View File
@@ -0,0 +1,28 @@
PYTHON ?= .venv/bin/python
PIP ?= .venv/bin/pip
NPM ?= npm
.PHONY: install test-fast lint typecheck frontend-build check-v1-absent check
install:
$(PIP) install -e 'backend[dev]'
$(NPM) --prefix frontend ci
test-fast:
$(PYTHON) -m pytest tests/unit tests/contract -q
lint:
$(PYTHON) -m ruff check --config backend/pyproject.toml backend/src tests tools
$(PYTHON) -m ruff format --check --config backend/pyproject.toml backend/src tests tools
typecheck:
$(PYTHON) -m mypy --config-file backend/pyproject.toml
$(NPM) --prefix frontend run typecheck
frontend-build:
$(NPM) --prefix frontend run build
check-v1-absent:
$(PYTHON) tools/forbidden_v1_scan.py .
check: check-v1-absent test-fast lint typecheck frontend-build