2019-12-11 23:36:35 +00:00
|
|
|
[flake8]
|
2023-02-16 12:37:01 +00:00
|
|
|
# line length handled by black.
|
|
|
|
extend-ignore = E501
|
2019-12-11 23:36:35 +00:00
|
|
|
|
2021-01-03 20:42:43 +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]
|
2023-03-11 16:02:00 +00:00
|
|
|
envlist = py3{7,8,9,10,11}, flake8, mypy, black, coverage
|
2019-12-11 23:36:35 +00:00
|
|
|
skip_missing_interpreters = True
|
|
|
|
|
|
|
|
[testenv]
|
2022-04-12 19:28:29 +00:00
|
|
|
deps =
|
|
|
|
coverage
|
|
|
|
pytest
|
2021-01-03 20:42:43 +00:00
|
|
|
commands = coverage run -m pytest
|
|
|
|
setenv =
|
|
|
|
COVERAGE_FILE={toxworkdir}/.coverage.{envname}
|
|
|
|
|
|
|
|
[testenv:coverage]
|
2022-04-12 19:28:29 +00:00
|
|
|
depends = py38, py39, py310
|
2021-01-03 20:42:43 +00:00
|
|
|
parallel_show_output = True
|
|
|
|
skip_install = True
|
|
|
|
setenv = COVERAGE_FILE={toxworkdir}/.coverage
|
2020-10-13 18:26:43 +00:00
|
|
|
commands =
|
2021-01-03 20:42:43 +00:00
|
|
|
coverage combine
|
|
|
|
coverage report --fail-under 60
|
2019-12-11 23:36:35 +00:00
|
|
|
|
|
|
|
[testenv:flake8]
|
2021-01-03 20:42:43 +00:00
|
|
|
skip_install = True
|
2022-04-12 19:28:29 +00:00
|
|
|
deps = flake8
|
2019-12-11 23:36:35 +00:00
|
|
|
commands = flake8 tests/ potodo/
|
|
|
|
|
|
|
|
[testenv:black]
|
2021-01-03 20:42:43 +00:00
|
|
|
skip_install = True
|
2022-04-12 19:28:29 +00:00
|
|
|
deps = black
|
2019-12-11 23:36:35 +00:00
|
|
|
commands = black --check --diff tests/ potodo/
|
|
|
|
|
|
|
|
[testenv:mypy]
|
2021-01-03 20:42:43 +00:00
|
|
|
skip_install = True
|
2022-04-12 19:28:29 +00:00
|
|
|
deps =
|
|
|
|
mypy
|
|
|
|
types-requests
|
|
|
|
types-polib
|
2019-12-13 14:12:35 +00:00
|
|
|
commands = mypy --ignore-missing-imports --strict potodo/
|