check-patroni/tox.ini

24 lines
482 B
INI
Raw Normal View History

2022-07-12 14:31:23 +02:00
[tox]
envlist = lint, mypy, py36, py37, py38, py39, py310
skip_missing_interpreters = True
[testenv]
extras = test
commands =
pytest {toxinidir}/check_patroni {toxinidir}/tests {posargs:-vv}
[testenv:lint]
skip_install = True
deps =
black
flake8
commands =
black --check --diff {toxinidir}/check_patroni {toxinidir}/tests
flake8 {toxinidir}/check_patroni {toxinidir}/tests
[testenv:mypy]
deps =
mypy == 0.961
commands =
mypy {toxinidir}/check_patroni