mirror of
https://github.com/datafolklabs/cement.git
synced 2026-02-06 20:36:52 +00:00
27 lines
504 B
Makefile
27 lines
504 B
Makefile
.PHONY: all init api-doc test comply clean
|
|
|
|
all: init test test-coverage comply api-docs clean
|
|
|
|
init:
|
|
pip install --upgrade -r requirements-dev.txt
|
|
|
|
test:
|
|
python -m pytest -v tests/
|
|
|
|
test-coverage:
|
|
python -m pytest -v --cov=cement --cov-report=term --cov-report=html:coverage-report tests/
|
|
|
|
comply:
|
|
flake8 cement/ tests/
|
|
|
|
api-docs:
|
|
python setup.py build_sphinx
|
|
@echo
|
|
@echo DOC: "file://"$$(echo `pwd`/doc/build/html/index.html)
|
|
@echo
|
|
|
|
clean:
|
|
find . -name '*.py[co]' -delete
|
|
rm -rf doc/build
|
|
|