-
Notifications
You must be signed in to change notification settings - Fork 20
/
tox.ini
34 lines (30 loc) · 945 Bytes
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Tox (http://tox.testrun.org/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
[tox]
envlist = py3,mypy3,lint
[testenv]
commands =
pytest -v --capture=no --junitxml=./build/pytest-{envname}.xml --html=./build/pytest-{envname}.html --self-contained-html {posargs:test/}
deps =
pytest==7.0.1
pytest-pylint==0.21.0
pytest-html==3.1.1
pyyaml==5.3.1
setenv =
PYTHONDONTWRITEBYTECODE = 1
ROOT_PROJECT_DIR = {toxinidir}
## run mypy as if the source code were in python 3
[testenv:mypy3]
basepython = python3
commands =
mypy --config-file mypy.ini --junit-xml ./build/mypy-{envname}.xml conjure_python_client
deps =
mypy==0.931
types-requests==2.27.11
[testenv:lint]
commands =
pycodestyle conjure_python_client
deps =
pycodestyle==2.8.0