tito/tox.ini
Pavel Raiskup 6feb4f2d21 tests: s/nosetests/pytest/
- Requires us to add pytest.ini to tell pytest where to look for test
  files, and set the python path.
- Mock drops terminal from the tested code, so we have to "mock" it in
  test_colors()
- Enable coverage in tox tests.
2024-11-06 11:19:55 +01:00

26 lines
552 B
INI

# ignore errors:
# E12* are continuation line indention related
# E501 is line too long
# See http://pep8.readthedocs.org/en/latest/intro.html#id1
[flake8]
ignore=E124,E125,E127,E128,E501
# Exclude the build directory that distutils creates
exclude=build/*
max-line-length=120
[tox]
# sync with /.github/workflows/fedora-tox.yml
envlist = py{36,37,311,312,313}
skipsdist = True
[testenv]
deps =
-rrequirements.txt
coverage
pytest
pytest-cov
commands =
python -m pytest -v {posargs} --cov-report term-missing --cov-branch --cov