telegram_media_downloader/Makefile

26 lines
617 B
Makefile
Raw Normal View History

2019-08-06 22:09:42 +08:00
TEST_ARTIFACTS ?= /tmp/coverage
2020-12-13 06:17:57 +08:00
.PHONY: install dev_install static_type_check pylint style_check test
2019-07-25 19:41:05 +08:00
install:
2019-08-06 22:09:42 +08:00
pip install --upgrade pip setuptools
pip install -r requirements.txt
2020-12-13 04:41:32 +08:00
dev_install: install
pip install -r dev-requirements.txt
2019-11-06 20:07:25 +08:00
static_type_check:
2020-07-22 03:31:39 +08:00
mypy media_downloader.py utils --ignore-missing-imports
2019-11-06 20:07:25 +08:00
pylint:
2020-07-22 03:31:39 +08:00
pylint media_downloader.py utils -r y
2019-11-06 20:07:25 +08:00
2020-12-13 04:41:32 +08:00
style_check: static_type_check pylint
2019-11-06 20:07:25 +08:00
test:
2019-08-06 22:09:42 +08:00
py.test --cov media_downloader --doctest-modules \
2020-07-22 03:31:39 +08:00
--cov utils \
2019-08-06 22:09:42 +08:00
--cov-report term-missing \
--cov-report html:${TEST_ARTIFACTS} \
--junit-xml=${TEST_ARTIFACTS}/media-downloader.xml \
tests/