feat(v2): complete v2 reimplementation

This commit is contained in:
2026-07-31 13:33:39 +02:00
parent 396219e776
commit bd107d6a30
137 changed files with 20737 additions and 155 deletions
+16 -2
View File
@@ -2,7 +2,7 @@ PYTHON ?= .venv/bin/python
BOOTSTRAP_PYTHON ?= python3
NPM ?= npm
.PHONY: setup install test-fast test-integration test-security lint typecheck frontend-build check-v1-absent check
.PHONY: setup install test-fast test-integration test-fault test-security test-e2e test-ssh-integration lint typecheck frontend-build check-v1-absent check-openapi check
setup:
test -x $(PYTHON) || $(BOOTSTRAP_PYTHON) -m venv .venv
@@ -18,9 +18,18 @@ test-fast:
test-integration:
$(PYTHON) -m pytest tests/integration -q
test-fault:
$(PYTHON) -m pytest tests/fault -q
test-security:
$(PYTHON) -m pytest tests/security -q
test-e2e:
BACKUP_TOOL_COMPOSE_E2E=1 $(PYTHON) -m pytest tests/e2e/test_compose_v2.py -q
test-ssh-integration:
BACKUP_TOOL_SSH_INTEGRATION=1 $(PYTHON) -m pytest tests/integration/test_ssh_backup_restore.py -q
lint:
$(PYTHON) -m ruff check --config backend/pyproject.toml backend/src backend/alembic tests tools
$(PYTHON) -m ruff format --check --config backend/pyproject.toml backend/src backend/alembic tests tools
@@ -32,7 +41,12 @@ typecheck:
frontend-build:
$(NPM) --prefix frontend run build
check-openapi:
$(PYTHON) tools/export_openapi.py
$(NPM) --prefix frontend run api:generate
git diff --exit-code -- openapi/v2.json frontend/src/api/generated
check-v1-absent:
$(PYTHON) tools/forbidden_v1_scan.py .
check: check-v1-absent test-fast test-integration test-security lint typecheck frontend-build
check: check-v1-absent check-openapi test-fast test-integration test-fault test-security lint typecheck frontend-build