diff --git a/Makefile b/Makefile index e04b5f05..d0993faf 100644 --- a/Makefile +++ b/Makefile @@ -26,11 +26,31 @@ help: @echo "" @echo "" +# ================================================================================================= +# Environment +# ================================================================================================= + .PHONY: install install: $(python) -m pip install --user -U poetry poetry install +.PHONY: clean +clean: + rm -rf `find . -name __pycache__` + rm -f `find . -type f -name '*.py[co]' ` + rm -f `find . -type f -name '*~' ` + rm -f `find . -type f -name '.*~' ` + rm -rf *.egg-info + rm -f .coverage + rm -f .coverage.* + rm -rf {build,dist,site,.cache,.pytest_cache,.mypy_cache} + + +# ================================================================================================= +# Code quality +# ================================================================================================= + .PHONY: isort isort: poetry run isort -rc aiogram tests @@ -51,10 +71,19 @@ mypy: lint: isort black flake8 mypy +# ================================================================================================= +# Tests +# ================================================================================================= + .PHONY: test test: poetry run pytest --cov=aiogram --cov-config .coveragerc tests/ -sq + +# ================================================================================================= +# Docs +# ================================================================================================= + .PHONY: docs docs: mkdocs build