mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-11-21 22:56:38 +01:00
27 lines
612 B
Makefile
27 lines
612 B
Makefile
.PHONY: clean pep8 lint test coverage
|
|
|
|
clean:
|
|
rm -fr build
|
|
rm -fr dist
|
|
find . -name '*.pyc' -exec rm -f {} \;
|
|
find . -name '*.pyo' -exec rm -f {} \;
|
|
find . -name '*~' -exec rm -f {} \;
|
|
|
|
pep8:
|
|
flake8 telegram
|
|
|
|
lint:
|
|
pylint -E telegram
|
|
|
|
test:
|
|
@- $(foreach TEST, $(wildcard tests/test_*.py), python $(TEST);)
|
|
|
|
coverage:
|
|
@- $(foreach TEST, $(wildcard tests/test_*.py), coverage run $(TEST);)
|
|
|
|
help:
|
|
@echo "Available targets:"
|
|
@echo "- clean Clean up the source directory"
|
|
@echo "- pep8 Check style with flake8"
|
|
@echo "- lint Check style with pylint"
|
|
@echo "- test Run tests"
|