2019-08-06 22:09:42 +08:00
|
|
|
TEST_ARTIFACTS ?= /tmp/coverage
|
|
|
|
|
|
|
|
.PHONY: install deps
|
|
|
|
|
|
|
|
deps: install
|
|
|
|
pip install -r dev-requirements.txt
|
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
|
|
|
|
|
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
|
|
|
|
|
|
|
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/
|