2015-11-10 15:10:50 +01:00
|
|
|
.PHONY: clean pep8 lint test install
|
2015-07-07 22:19:26 +02:00
|
|
|
|
2016-02-06 10:34:38 +01:00
|
|
|
PYLINT := pylint
|
|
|
|
NOSETESTS := nosetests
|
|
|
|
PEP257 := pep257
|
|
|
|
PEP8 := flake8
|
|
|
|
PIP := pip
|
|
|
|
|
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 {} \;
|
|
|
|
|
2016-01-13 17:09:35 +01:00
|
|
|
pep257:
|
2016-02-06 10:34:38 +01:00
|
|
|
$(PEP257) telegram
|
2016-01-13 17:09:35 +01:00
|
|
|
|
2015-08-28 22:45:44 +02:00
|
|
|
pep8:
|
2016-02-06 10:34:38 +01:00
|
|
|
$(PEP8) telegram
|
2015-08-28 22:45:44 +02:00
|
|
|
|
2015-07-07 22:19:26 +02:00
|
|
|
lint:
|
2016-02-06 10:34:38 +01:00
|
|
|
$(PYLINT) -E telegram --disable=no-name-in-module,import-error
|
2015-07-07 22:19:26 +02:00
|
|
|
|
|
|
|
test:
|
2016-02-06 11:14:27 +01:00
|
|
|
$(NOSETESTS) -v
|
2015-09-07 21:28:00 +02:00
|
|
|
|
2015-11-10 15:10:50 +01:00
|
|
|
install:
|
2016-02-06 10:34:38 +01:00
|
|
|
$(PIP) install -r requirements.txt
|
2015-11-10 15:10:50 +01:00
|
|
|
|
2015-08-28 18:02:02 +02:00
|
|
|
help:
|
2015-08-28 22:45:44 +02:00
|
|
|
@echo "Available targets:"
|
|
|
|
@echo "- clean Clean up the source directory"
|
2016-01-13 17:09:35 +01:00
|
|
|
@echo "- pep257 Check docstring style with pep257"
|
2015-08-28 22:45:44 +02:00
|
|
|
@echo "- pep8 Check style with flake8"
|
|
|
|
@echo "- lint Check style with pylint"
|
|
|
|
@echo "- test Run tests"
|
2016-02-06 10:34:38 +01:00
|
|
|
@echo
|
|
|
|
@echo "Available variables:"
|
|
|
|
@echo "- PYLINT default: $(PYLINT)"
|
|
|
|
@echo "- NOSETESTS default: $(NOSETESTS)"
|
|
|
|
@echo "- PEP257 default: $(PEP257)"
|
|
|
|
@echo "- PEP8 default: $(PEP8)"
|
|
|
|
@echo "- PIP default: $(PIP)"
|