29 lines
734 B
Makefile
29 lines
734 B
Makefile
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
|