AndreiDrang/python3-capsolver

View on GitHub
Makefile

Summary

Maintainability
Test Coverage
install:
    pip3 install -e .

remove:
    pip uninstall python3_capsolver -y

refactor:
    black docs/
    isort docs/

    autoflake --in-place \
                --recursive \
                --remove-unused-variables \
                --remove-duplicate-keys \
                --remove-all-unused-imports \
                src/ tests/
    black src/ tests/
    isort src/ tests/

lint:
    autoflake --in-place --recursive src/ --check
    black src/ --check
    isort src/ --check-only

build:
    pip3 install --upgrade build setuptools
    python3 -m build

upload:
    pip3 install twine wheel setuptools build
    twine upload dist/*

tests: install
    coverage run --rcfile=.coveragerc -m pytest -vv --showlocals --pastebin=all \
    tests/ && \
    coverage report --precision=3 --sort=cover --skip-empty --show-missing && \
    coverage html --precision=3 --skip-empty -d src/coverage/html/ && \
    coverage xml -o src/coverage/coverage.xml

doc: install
    cd docs/ && \
    make html -e