python-telegram-bot/Makefile

28 lines
612 B
Makefile
Raw Normal View History

2015-09-07 21:28:00 +02:00
.PHONY: clean pep8 lint test coverage
2015-07-07 22:19:26 +02:00
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
2015-07-07 22:19:26 +02:00
lint:
pylint -E telegram
2015-07-07 22:19:26 +02:00
test:
@- $(foreach TEST, $(wildcard tests/test_*.py), python $(TEST);)
2015-08-28 18:02:02 +02:00
2015-09-07 21:28:00 +02:00
coverage:
@- $(foreach TEST, $(wildcard tests/test_*.py), coverage run $(TEST);)
2015-08-28 18:02:02 +02:00
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"