-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
34 lines (25 loc) · 902 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
.PHONY: clean correct docs tests coverage-html release
.ONESHELL: release
clean:
rm -fr build/ dist/ htmlcov/ __pycache__
poetry run make -C docs clean
correct:
poetry run isort cms_helpers tests
poetry run black -q cms_helpers tests
docs:
poetry run make -C docs html
tests_basic:
@PYTHONPATH=$(CURDIR):${PYTHONPATH} poetry run pytest --ignore=tests/anylink --ignore=tests/filer
tests_anylink:
@PYTHONPATH=$(CURDIR):${PYTHONPATH} poetry run pytest --ignore=tests/filer
tests_filer:
@PYTHONPATH=$(CURDIR):${PYTHONPATH} poetry run pytest --ignore=tests/anylink
tests:
@PYTHONPATH=$(CURDIR):${PYTHONPATH} poetry run pytest --cov --isort --flake8 --black
coverage-html: tests
poetry run coverage html
release:
@VERSION=`poetry version -s`
@echo About to release $${VERSION}
@echo [ENTER] to continue; read
git tag -a "$${VERSION}" -m "Version $${VERSION}" && git push --follow-tags