tox.ini 626 Bytes
Newer Older
Elad Noor's avatar
Elad Noor committed
1
[tox]
2
envlist = flake8, isort, safety, py{36,37}
Elad Noor's avatar
Elad Noor committed
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19

[testenv]
setenv =
    PYTHONUNBUFFERED=1
deps =
    pytest
    pytest-cov
    pytest-raises
commands =
    pytest --cov={envsitepackagesdir}/equilibrator_api {posargs}

[testenv:flake8]
skip_install = True
deps=
    flake8
    flake8-docstrings
commands=
20
    flake8 {toxinidir}/src/equilibrator_api {toxinidir}/tests {toxinidir}/scripts
Elad Noor's avatar
Elad Noor committed
21 22 23 24 25 26

[testenv:isort]
skip_install = True
deps=
    isort
commands=
27
    isort --check-only --diff --recursive {toxinidir}/src/equilibrator_api {toxinidir}/tests {toxinidir}/scripts
Elad Noor's avatar
Elad Noor committed
28 29 30 31 32 33

[testenv:safety]
deps=
    safety
commands=
    safety check