ariebovenberg/valuable

View on GitHub
Makefile

Summary

Maintainability
Test Coverage
.PHONY: docs test build publish clean

init:
    pip install -r requirements/dev.txt

docs:
    @touch docs/api.rst  # ensure api docs always rebuilt
    make -C docs/ html

test:
    detox

test-examples:
    pytest examples/

coverage:
    pytest --cov=valuable --cov-report html --cov-report term --cov-branch --cov-fail-under 100

publish: clean
    rm -rf build dist .egg valuable.egg-info
    python setup.py sdist bdist_wheel
    twine upload dist/*

clean:
    find . | grep -E "(__pycache__|\.pyc|\.pyo$$)" | xargs rm -rf
    python setup.py clean --all