antonagestam/collectfast

View on GitHub
Makefile

Summary

Maintainability
Test Coverage
SHELL := /usr/bin/env bash

test:
    . storage-credentials && pytest

test-skip-live:
    SKIP_LIVE_TESTS=true pytest

test-coverage:
    . storage-credentials && coverage run --source collectfast -m pytest

clean:
    rm -rf Collectfast.egg-info __pycache__ build dist

build: clean
    python3 -m pip install --upgrade wheel twine setuptools
    python3 setup.py sdist bdist_wheel

distribute: build
    python3 -m twine upload dist/*

test-distribute: build
    python3 -m twine upload --repository-url https://test.pypi.org/legacy/ dist/*

lint:
    flake8
    sorti --check .
    black --check .
    mypy .

format:
    sorti .
    black .