Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BJKMLHdxMwSUeYcdkwqX4W
24 lines
724 B
Makefile
24 lines
724 B
Makefile
BIN := $(CURDIR)/.venv/bin
|
||
|
||
.PHONY: help venv lint test check golden-update
|
||
|
||
help: ## Список целей
|
||
@grep -E '^[a-z-]+:.*##' $(MAKEFILE_LIST) | sed 's/:.*##/ —/'
|
||
|
||
venv: ## Создать .venv и поставить зависимости (с dev)
|
||
uv venv --python 3.11 --allow-existing .venv
|
||
uv pip install --python .venv/bin/python -r pyproject.toml --extra dev
|
||
|
||
lint: ## ruff check, ruff format --check, mypy
|
||
$(BIN)/ruff check .
|
||
$(BIN)/ruff format --check .
|
||
$(BIN)/mypy arm_statements
|
||
|
||
test: ## pytest
|
||
$(BIN)/pytest
|
||
|
||
check: lint test ## lint + test
|
||
|
||
golden-update: ## Обновить эталоны golden-теста (задача 20)
|
||
GOLDEN_UPDATE=1 $(BIN)/pytest arm_statements/tests/test_golden.py
|