pytest-mock/tox.ini

34 lines
592 B
INI
Raw Permalink Normal View History

2016-11-01 20:01:57 +01:00
[tox]
2021-08-31 11:33:03 +02:00
minversion = 3.5.3
envlist = py{35,36,37,38,39}, linting, norewrite
2016-11-01 20:01:57 +01:00
[testenv]
passenv = USER USERNAME
deps =
coverage
2021-08-31 11:33:03 +02:00
pytest-asyncio
2016-11-01 20:01:57 +01:00
commands =
2021-08-31 11:33:03 +02:00
coverage run --append --source={envsitepackagesdir}/pytest_mock -m pytest tests
2016-11-01 20:01:57 +01:00
2018-03-05 23:30:36 +01:00
[testenv:norewrite]
commands =
2021-08-31 11:33:03 +02:00
pytest tests --assert=plain
2018-03-05 23:30:36 +01:00
2016-11-01 20:01:57 +01:00
[testenv:linting]
2019-08-24 18:33:04 +02:00
usedevelop = True
extras = dev
basepython = python3.6
commands = pre-commit run --all-files --show-diff-on-failure
2021-08-31 11:33:03 +02:00
[testenv:mypy]
skip_install = true
deps =
mypy==0.800
commands = mypy {posargs:src tests}
2019-08-24 18:33:04 +02:00
[pytest]
2021-08-31 11:33:03 +02:00
addopts = -r a
2019-08-24 18:33:04 +02:00
[flake8]
max-line-length = 88