forked from AFPy/pospell
1
0
Fork 0
pospell/tox.ini

75 lines
1.5 KiB
INI

[flake8]
;E203 for black (whitespace before : in slices), and F811 for @overload
ignore = E203, F811
max-line-length = 88
[coverage:run]
; branch = true: would need a lot of pragma: no branch on infinite loops.
parallel = true
concurrency = multiprocessing
omit =
.tox/*
[coverage:report]
skip_covered = True
show_missing = True
exclude_lines =
pragma: no cover
def __repr__
if self\.debug
raise AssertionError
raise NotImplementedError
if __name__ == .__main__.:
[tox]
envlist = py37, py38, py39, py310, py311, flake8, mypy, black, pylint, pydocstyle, coverage
isolated_build = True
skip_missing_interpreters = True
[testenv]
deps =
pytest
coverage
commands = coverage run -m pytest
setenv =
COVERAGE_FILE={toxworkdir}/.coverage.{envname}
[testenv:coverage]
depends = py36, py37, py38, py39
parallel_show_output = True
deps = coverage
skip_install = True
setenv = COVERAGE_FILE={toxworkdir}/.coverage
commands =
coverage combine
coverage report --fail-under 65
[testenv:flake8]
deps = flake8
skip_install = True
commands = flake8 tests/ pospell.py
[testenv:black]
deps = black
skip_install = True
commands = black --check --diff tests/ pospell.py
[testenv:mypy]
deps =
mypy
types-docutils
types-polib
skip_install = True
commands = mypy --ignore-missing-imports pospell.py
[testenv:pylint]
deps = pylint
commands = pylint --disable import-outside-toplevel,invalid-name pospell.py
[testenv:pydocstyle]
deps = pydocstyle
skip_install = True
commands = pydocstyle pospell.py