mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Reformat Makefile
This commit is contained in:
parent
6c02341303
commit
22df168042
1 changed files with 29 additions and 0 deletions
29
Makefile
29
Makefile
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue