Reformat Makefile

This commit is contained in:
jrootjunior 2019-11-15 14:21:35 +02:00
parent 6c02341303
commit 22df168042

View file

@ -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