mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-12-22 14:35:00 +01:00
control name and location of python cmds
this is very useful for setups where python/pylint/etc. are not installed in default names/paths
This commit is contained in:
parent
e82ae432f7
commit
e8363f2440
1 changed files with 18 additions and 5 deletions
23
Makefile
23
Makefile
|
@ -1,5 +1,11 @@
|
|||
.PHONY: clean pep8 lint test install
|
||||
|
||||
PYLINT := pylint
|
||||
NOSETESTS := nosetests
|
||||
PEP257 := pep257
|
||||
PEP8 := flake8
|
||||
PIP := pip
|
||||
|
||||
clean:
|
||||
rm -fr build
|
||||
rm -fr dist
|
||||
|
@ -8,19 +14,19 @@ clean:
|
|||
find . -name '*~' -exec rm -f {} \;
|
||||
|
||||
pep257:
|
||||
pep257 telegram
|
||||
$(PEP257) telegram
|
||||
|
||||
pep8:
|
||||
flake8 telegram
|
||||
$(PEP8) telegram
|
||||
|
||||
lint:
|
||||
pylint -E telegram --disable=no-name-in-module,import-error
|
||||
$(PYLINT) -E telegram --disable=no-name-in-module,import-error
|
||||
|
||||
test:
|
||||
nosetests
|
||||
$(NOSETESTS)
|
||||
|
||||
install:
|
||||
pip install -r requirements.txt
|
||||
$(PIP) install -r requirements.txt
|
||||
|
||||
help:
|
||||
@echo "Available targets:"
|
||||
|
@ -29,3 +35,10 @@ help:
|
|||
@echo "- pep8 Check style with flake8"
|
||||
@echo "- lint Check style with pylint"
|
||||
@echo "- test Run tests"
|
||||
@echo
|
||||
@echo "Available variables:"
|
||||
@echo "- PYLINT default: $(PYLINT)"
|
||||
@echo "- NOSETESTS default: $(NOSETESTS)"
|
||||
@echo "- PEP257 default: $(PEP257)"
|
||||
@echo "- PEP8 default: $(PEP8)"
|
||||
@echo "- PIP default: $(PIP)"
|
||||
|
|
Loading…
Reference in a new issue