potodo/tox.ini
Julien Palard 3d7fab29cd
Harden ci (#109)
* Separate coverage to avoid INTERNALERROR> coverage.misc.CoverageException: Couldn't use data file

* Freez requirements to avoid surprises in the CI.

* Drop this fucker.

* Newline at end of file.

* Update tox.ini

Co-authored-by: Antoine <43954001+awecx@users.noreply.github.com>

Co-authored-by: Antoine <43954001+awecx@users.noreply.github.com>
2021-01-03 21:42:43 +01:00

44 lines
882 B
INI

[flake8]
extend-ignore = E501 # line length handled by black.
[coverage:run]
branch = true
parallel = true
omit =
.tox/*
[coverage:report]
skip_covered = True
show_missing = True
[tox]
envlist = py36, py37, py38, py39, flake8, mypy, black, coverage
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
commands =
coverage combine
coverage report --fail-under 60
[testenv:flake8]
skip_install = True
commands = flake8 tests/ potodo/
[testenv:black]
skip_install = True
commands = black --check --diff tests/ potodo/
[testenv:mypy]
skip_install = True
commands = mypy --ignore-missing-imports --strict potodo/