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 ""
@echo "" @echo ""
# =================================================================================================
# Environment
# =================================================================================================
.PHONY: install .PHONY: install
install: install:
$(python) -m pip install --user -U poetry $(python) -m pip install --user -U poetry
poetry install 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 .PHONY: isort
isort: isort:
poetry run isort -rc aiogram tests poetry run isort -rc aiogram tests
@ -51,10 +71,19 @@ mypy:
lint: isort black flake8 mypy lint: isort black flake8 mypy
# =================================================================================================
# Tests
# =================================================================================================
.PHONY: test .PHONY: test
test: test:
poetry run pytest --cov=aiogram --cov-config .coveragerc tests/ -sq poetry run pytest --cov=aiogram --cov-config .coveragerc tests/ -sq
# =================================================================================================
# Docs
# =================================================================================================
.PHONY: docs .PHONY: docs
docs: docs:
mkdocs build mkdocs build