mirror of
https://github.com/Dineshkarthik/telegram_media_downloader.git
synced 2024-12-28 01:33:00 +08:00
26 lines
No EOL
617 B
Makefile
26 lines
No EOL
617 B
Makefile
TEST_ARTIFACTS ?= /tmp/coverage
|
|
|
|
.PHONY: install dev_install static_type_check pylint style_check test
|
|
|
|
install:
|
|
pip install --upgrade pip setuptools
|
|
pip install -r requirements.txt
|
|
|
|
dev_install: install
|
|
pip install -r dev-requirements.txt
|
|
|
|
static_type_check:
|
|
mypy media_downloader.py utils --ignore-missing-imports
|
|
|
|
pylint:
|
|
pylint media_downloader.py utils -r y
|
|
|
|
style_check: static_type_check pylint
|
|
|
|
test:
|
|
py.test --cov media_downloader --doctest-modules \
|
|
--cov utils \
|
|
--cov-report term-missing \
|
|
--cov-report html:${TEST_ARTIFACTS} \
|
|
--junit-xml=${TEST_ARTIFACTS}/media-downloader.xml \
|
|
tests/
|