homebank/Makefile

21 lines
406 B
Makefile
Raw Normal View History

2022-11-04 21:58:39 +01:00
all: .git/hooks/pre-commit build/cache/virtualenvs/ code_checks test
build/cache/virtualenvs/: pyproject.toml
poetry install
code_checks: $(shell find src)
poetry run python -m mypy src
test: code_checks $(shell find test)
poetry run python -m unittest test
.git/hooks/pre-commit: build/cache/virtualenvs/
poetry run pre-commit install
clean:
rm -rf build
rm -rf .mypy_cache
rm -rf dist