python-telegram-bot/Makefile

20 lines
423 B
Makefile
Raw Normal View History

2015-08-28 18:02:02 +02:00
.PHONY: clean test lint help
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 {} \;
lint:
2015-07-12 15:39:11 +02:00
flake8 --doctests --max-complexity 10 telegram
2015-07-07 22:19:26 +02:00
test:
2015-08-28 18:02:02 +02:00
@- $(foreach TEST, $(wildcard tests/test_*.py), python $(TEST))
help:
@echo " clean remove unwanted stuff"
@echo " lint check style with flake8"
@echo " test run tests"