This repository has been archived on 2026-10-26. You can view files and clone it, but cannot push or open issues or pull requests.
arm-statements/Makefile
2026-10-18 13:11:38 +04:00

24 lines
724 B
Makefile
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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