-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
33 lines (23 loc) · 862 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
blackify:
poetry run black py_pdf_term tests scripts
build-docs: clean-docs
poetry run sphinx-build docs build
poetry run python docs/scripts/postprocess.py
clean-docs:
rm -Rf build
format: isortify blackify
gen-test-coverage:
poetry run pytest --cov=py_pdf_term --cov-branch --cov-report=xml
isortify:
poetry run isort --profile black py_pdf_term tests scripts
lint-fix:
poetry run flake8 py_pdf_term tests scripts
poetryversion:
poetry version $(version)
serve-docs: build-docs
poetry run python -m http.server --bind 127.0.0.1 9000 --directory build
test:
poetry run pytest --cov=py_pdf_term --cov-branch --cov-report=term-missing
version: poetryversion
$(eval NEW_VERSION := $(shell cat pyproject.toml | grep "^version = \"*\"" | cut -d'"' -f2))
sed -i "" "s/__version__ = .*/__version__ = \"$(NEW_VERSION)\"/g" py_pdf_term/__init__.py