tox.ini 542 Bytes
Newer Older
崔为之's avatar
崔为之 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
[tox]
isolated_build = True
indexserver =
    default = https://pypi.tuna.tsinghua.edu.cn/simple
envlist =
    py311
    isort
    pylint

[testenv:isort]
deps =
    isort
changedir = {toxinidir}
commands =
    isort . --check-only --diff

[testenv]
deps =
    poetry
commands =
    poetry install -v

[testenv:pylint]
changedir = {toxinidir}
commands =
    poetry install -v
    poetry run pylint tests application

[testenv:coverage]
deps =
    poetry
    coverage
commands =
    poetry run coverage report --rcfile=tox.ini --fail-under=50