summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini8
1 files changed, 8 insertions, 0 deletions
diff --git a/tox.ini b/tox.ini
index 214a8c75f5..5402c7edab 100644
--- a/tox.ini
+++ b/tox.ini
@@ -38,11 +38,19 @@ commands =
env TEST_OSPROFILER=1 stestr run --combine --no-discover 'nova.tests.unit.test_profiler'
stestr slowest
+[testenv:mypy]
+description =
+ Run type checks.
+envdir = {toxworkdir}/shared
+commands =
+ bash tools/mypywrap.sh {posargs}
+
[testenv:pep8]
description =
Run style checks.
envdir = {toxworkdir}/shared
commands =
+ {[testenv:mypy]commands}
bash tools/flake8wrap.sh {posargs}
# Check that all JSON files don't have \r\n in line.
bash -c "! find doc/ -type f -name *.json | xargs grep -U -n $'\r'"