mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2025-03-27 08:50:38 +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
|
.PHONY: clean pep8 lint test install
|
||||||
|
|
||||||
|
PYLINT := pylint
|
||||||
|
NOSETESTS := nosetests
|
||||||
|
PEP257 := pep257
|
||||||
|
PEP8 := flake8
|
||||||
|
PIP := pip
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -fr build
|
rm -fr build
|
||||||
rm -fr dist
|
rm -fr dist
|
||||||
|
@ -8,19 +14,19 @@ clean:
|
||||||
find . -name '*~' -exec rm -f {} \;
|
find . -name '*~' -exec rm -f {} \;
|
||||||
|
|
||||||
pep257:
|
pep257:
|
||||||
pep257 telegram
|
$(PEP257) telegram
|
||||||
|
|
||||||
pep8:
|
pep8:
|
||||||
flake8 telegram
|
$(PEP8) telegram
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
pylint -E telegram --disable=no-name-in-module,import-error
|
$(PYLINT) -E telegram --disable=no-name-in-module,import-error
|
||||||
|
|
||||||
test:
|
test:
|
||||||
nosetests
|
$(NOSETESTS)
|
||||||
|
|
||||||
install:
|
install:
|
||||||
pip install -r requirements.txt
|
$(PIP) install -r requirements.txt
|
||||||
|
|
||||||
help:
|
help:
|
||||||
@echo "Available targets:"
|
@echo "Available targets:"
|
||||||
|
@ -29,3 +35,10 @@ help:
|
||||||
@echo "- pep8 Check style with flake8"
|
@echo "- pep8 Check style with flake8"
|
||||||
@echo "- lint Check style with pylint"
|
@echo "- lint Check style with pylint"
|
||||||
@echo "- test Run tests"
|
@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…
Add table
Reference in a new issue