potodo/tox.ini

44 lines
882 B
INI
Raw Normal View History

2019-12-11 23:36:35 +00:00
[flake8]
2020-10-12 12:52:58 +00:00
extend-ignore = E501 # line length handled by black.
2019-12-11 23:36:35 +00:00
[coverage:run]
branch = true
parallel = true
omit =
.tox/*
[coverage:report]
skip_covered = True
show_missing = True
2019-12-11 23:36:35 +00:00
[tox]
envlist = py36, py37, py38, py39, flake8, mypy, black, coverage
2019-12-11 23:36:35 +00:00
skip_missing_interpreters = True
[testenv]
deps = -r requirements-dev.txt
commands = coverage run -m pytest
setenv =
COVERAGE_FILE={toxworkdir}/.coverage.{envname}
[testenv:coverage]
depends = py36, py37, py38, py39
parallel_show_output = True
skip_install = True
setenv = COVERAGE_FILE={toxworkdir}/.coverage
2020-10-13 18:26:43 +00:00
commands =
coverage combine
coverage report --fail-under 60
2019-12-11 23:36:35 +00:00
[testenv:flake8]
skip_install = True
2019-12-11 23:36:35 +00:00
commands = flake8 tests/ potodo/
[testenv:black]
skip_install = True
2019-12-11 23:36:35 +00:00
commands = black --check --diff tests/ potodo/
[testenv:mypy]
skip_install = True
2019-12-13 14:12:35 +00:00
commands = mypy --ignore-missing-imports --strict potodo/