tox.ini

Summary

Maintainability
Test Coverage
[tox]
envlist =
    py35,py36,py37,
    pep8,
    py3-cover,coverage,
skip_missing_interpreters = True

[testenv]
passenv = CI TRAVIS TRAVIS_* CODECLIMATE_REPO_TOKEN CODECOV_TOKEN

basepython =
    py35: python3.5
    py36: python3.6
    py37: python3.7
    py3: python3.5

commands =
    pip install -q muuri[testing]
    alembic --raiseerr --config {toxinidir}/development.ini --name "app:main" upgrade head

[testenv:py35-scaffolds]
basepython = python3.5
deps = virtualenv

[testenv:pep8]
basepython = python3.5
exclude =
    .git,
    __pycache__,
    docs/source/conf.py,
    old,
    build,
    dist
commands =
    flake8 muuri/
deps =
    flake8

[testenv:py3-cover]
deps =
    coverage

commands =
    pip install -q muuri[testing]
    coverage run --source=muuri {envbindir}/nosetests
    coverage xml -o coverage-py3.xml

setenv =
    COVERAGE_FILE=.coverage.py3

[testenv:coverage]
deps =
    coverage
    codeclimate-test-reporter
    codecov

basepython = python3.5

commands =
    coverage erase
    coverage combine
    coverage xml
    coverage report --show-missing --fail-under=100
    codeclimate-test-reporter
    codecov

setenv =
    COVERAGE_FILE=.coverage

[flake8]
ignore =
    E501,
    E402,
    F401,
    W391,
    F403,
    E302,
    E712,
    F841