summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini39
1 files changed, 26 insertions, 13 deletions
diff --git a/tox.ini b/tox.ini
index c494cb94..e69c6e13 100644
--- a/tox.ini
+++ b/tox.ini
@@ -10,12 +10,14 @@ passenv=
PYTEST_ADDOPTS
[format_deps]
-black==21.12b0
-flake8==3.9.2
+black==22.3.0
+flake8==4.0.1
isort==5.10.1
-mypy==0.931
-pylint==2.11.1
-pytest==7.0.0
+mypy==0.950
+pylint==2.13.8
+pytest==7.0.1
+types-jsonschema==4.4.2
+types-oauthlib==3.1.6
types-PyYAML==6.0.4
types-requests==2.27.8
types-setuptools==57.4.9
@@ -23,14 +25,14 @@ types-setuptools==57.4.9
[testenv:flake8]
deps =
flake8=={[format_deps]flake8}
-commands = {envpython} -m flake8 {posargs:cloudinit/ tests/ tools/ setup.py}
+commands = {envpython} -m flake8 {posargs:cloudinit/ tests/ tools/ conftest.py setup.py}
[testenv:pylint]
deps =
pylint=={[format_deps]pylint}
-r{toxinidir}/test-requirements.txt
-r{toxinidir}/integration-requirements.txt
-commands = {envpython} -m pylint {posargs:cloudinit tests tools}
+commands = {envpython} -m pylint {posargs:cloudinit/ tests/ tools/ conftest.py setup.py}
[testenv:black]
deps =
@@ -45,11 +47,13 @@ commands = {envpython} -m isort . --check-only
[testenv:mypy]
deps =
mypy=={[format_deps]mypy}
+ types-jsonschema=={[format_deps]types-jsonschema}
+ types-oauthlib=={[format_deps]types-oauthlib}
types-pyyaml=={[format_deps]types-PyYAML}
types-requests=={[format_deps]types-requests}
types-setuptools=={[format_deps]types-setuptools}
pytest=={[format_deps]pytest}
-commands = {envpython} -m mypy .
+commands = {envpython} -m mypy cloudinit/ tests/ tools/
[testenv:check_format]
deps =
@@ -59,6 +63,11 @@ deps =
mypy=={[format_deps]mypy}
pylint=={[format_deps]pylint}
pytest=={[format_deps]pytest}
+ types-jsonschema=={[format_deps]types-jsonschema}
+ types-oauthlib=={[format_deps]types-oauthlib}
+ types-pyyaml=={[format_deps]types-PyYAML}
+ types-requests=={[format_deps]types-requests}
+ types-setuptools=={[format_deps]types-setuptools}
-r{toxinidir}/test-requirements.txt
-r{toxinidir}/integration-requirements.txt
commands =
@@ -108,8 +117,10 @@ deps =
# test-requirements
pytest==3.3.2
pytest-cov==2.5.1
+ pytest-mock==1.7.1
# Needed by pytest and default causes failures
attrs==17.4.0
+ responses==0.5.1
[testenv:lowest-supported]
# This definition will run on bionic with the version of httpretty
@@ -132,24 +143,26 @@ commands = {[testenv:py3]commands}
deps =
-r{toxinidir}/doc-requirements.txt
commands =
- {envpython} -m sphinx {posargs:doc/rtd doc/rtd_html}
+ {envpython} -m sphinx {posargs:-W doc/rtd doc/rtd_html}
doc8 doc/rtd
[testenv:tip-flake8]
-commands = {envpython} -m flake8 {posargs:cloudinit/ tests/ tools/ setup.py}
+commands = {envpython} -m flake8 {posargs:cloudinit/ tests/ tools/ conftest.py setup.py}
deps = flake8
[testenv:tip-mypy]
-commands = {envpython} -m mypy --install-types --non-interactive .
+commands = {envpython} -m mypy --install-types --non-interactive cloudinit/ tests/ tools/
deps =
mypy
pytest
+ types-jsonschema
+ types-oauthlib
types-PyYAML
types-requests
types-setuptools
[testenv:tip-pylint]
-commands = {envpython} -m pylint {posargs:cloudinit tests tools}
+commands = {envpython} -m pylint {posargs:cloudinit/ tests/ tools/ conftest.py setup.py}
deps =
# requirements
pylint
@@ -158,7 +171,7 @@ deps =
-r{toxinidir}/integration-requirements.txt
[testenv:integration-tests]
-commands = {envpython} -m pytest --log-cli-level=INFO {posargs:tests/integration_tests}
+commands = {envpython} -m pytest --log-cli-level=INFO -vv {posargs:tests/integration_tests}
deps =
-r{toxinidir}/integration-requirements.txt
passenv = CLOUD_INIT_* PYCLOUDLIB_* SSH_AUTH_SOCK OS_*