Codebase list pastedeploy / multiarch-fixes/main tox.ini
multiarch-fixes/main

Tree @multiarch-fixes/main (Download .tar.gz)

tox.ini @multiarch-fixes/mainraw · history · blame

[tox]
envlist =
    py37,py38,py39,py310,pypy3,
    coverage,
    docs
isolated_build = True

[testenv]
commands =
    python --version
    pytest {posargs:}
extras =
    testing
setenv =
    COVERAGE_FILE=.coverage.{envname}

[testenv:coverage]
commands =
    coverage combine
    coverage report
deps =
    coverage
setenv =
    COVERAGE_FILE=.coverage

[testenv:docs]
whitelist_externals = make
commands =
    make -C docs html epub BUILDDIR={envdir}
extras =
    docs

[testenv:lint]
skip_install = True
commands =
    isort --check-only --df src/paste tests
    black --check --diff .
    flake8 src/paste tests
    check-manifest
    # build sdist/wheel
    python -m build .
    twine check dist/*
deps =
    black
    build
    check-manifest
    flake8
    flake8-bugbear
    isort
    readme_renderer
    twine

[testenv:format]
skip_install = true
commands =
    isort src/paste tests
    black .
deps =
    black
    isort

[testenv:build]
skip_install = True
commands =
    # clean up build/ and dist/ folders
    python -c 'import shutil; shutil.rmtree("build", ignore_errors=True)'
    # Make sure we aren't forgetting anything
    check-manifest
    # build sdist/wheel
    python -m build .
    # Verify all is well
    twine check dist/*

deps =
    build
    check-manifest
    readme_renderer
    twine