mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-11-24 16:17:37 +01:00
5d7c6ad541
Required fixes: - CallbackQuery is now comparable. - Message.effective_attachment, Message.photo, Message.new_chat_members, Message.new_chat_photo & Game.text_entitties semantic fixes - when they are not defined, return an empty list. - Docstring fix to Update class.
52 lines
1.3 KiB
Makefile
52 lines
1.3 KiB
Makefile
.DEFAULT_GOAL := help
|
|
.PHONY: clean pep257 pep8 yapf lint test install
|
|
|
|
PYLINT := pylint
|
|
PYTEST := pytest
|
|
PEP257 := pep257
|
|
PEP8 := flake8
|
|
YAPF := yapf
|
|
PIP := pip
|
|
|
|
clean:
|
|
rm -fr build
|
|
rm -fr dist
|
|
find . -name '*.pyc' -exec rm -f {} \;
|
|
find . -name '*.pyo' -exec rm -f {} \;
|
|
find . -name '*~' -exec rm -f {} \;
|
|
find . -regex "./telegram.\(mp3\|mp4\|ogg\|png\|webp\)" -exec rm {} \;
|
|
|
|
pep257:
|
|
$(PEP257) telegram
|
|
|
|
pep8:
|
|
$(PEP8) telegram
|
|
|
|
yapf:
|
|
$(YAPF) -r telegram
|
|
|
|
lint:
|
|
$(PYLINT) -E telegram --disable=no-name-in-module,import-error
|
|
|
|
test:
|
|
$(PYTEST) -v
|
|
|
|
install:
|
|
$(PIP) install -r requirements.txt -r requirements-dev.txt
|
|
|
|
help:
|
|
@echo "Available targets:"
|
|
@echo "- clean Clean up the source directory"
|
|
@echo "- pep257 Check docstring style with pep257"
|
|
@echo "- pep8 Check style with flake8"
|
|
@echo "- lint Check style with pylint"
|
|
@echo "- yapf Check style with yapf"
|
|
@echo "- test Run tests using pytest"
|
|
@echo
|
|
@echo "Available variables:"
|
|
@echo "- PYLINT default: $(PYLINT)"
|
|
@echo "- PYTEST default: $(PYTEST)"
|
|
@echo "- PEP257 default: $(PEP257)"
|
|
@echo "- PEP8 default: $(PEP8)"
|
|
@echo "- YAPF default: $(YAPF)"
|
|
@echo "- PIP default: $(PIP)"
|