homebank/Makefile
2022-11-04 22:02:36 +01:00

20 lines
406 B
Makefile

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