summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini19
1 files changed, 4 insertions, 15 deletions
diff --git a/tox.ini b/tox.ini
index 3de7dd38..9dad40f6 100644
--- a/tox.ini
+++ b/tox.ini
@@ -21,22 +21,11 @@ deps =
commands = stestr run {posargs}
allowlist_externals = stestr
-[testenv:fast8]
-# Use same environment directory as pep8 env to save space and install time
-setenv =
- VIRTUAL_ENV={envdir}
-envdir = {toxworkdir}/pep8
-commands =
- {toxinidir}/tools/fast8.sh
-
[testenv:pep8]
deps =
- hacking>=2.0.0
- bandit!=1.6.0,>=1.1.0
- flake8-import-order>=0.13 # LGPLv3
+ pre-commit
commands =
- flake8
- bandit -r openstackclient -x tests -s B105,B106,B107,B401,B404,B603,B606,B607,B110,B605,B101
+ pre-commit run --all-files --show-diff-on-failure
[testenv:bandit]
# This command runs the bandit security linter against the openstackclient
@@ -76,9 +65,9 @@ commands =
allowlist_externals = stestr
[testenv:functional]
-setenv =
+setenv =
OS_TEST_PATH=./openstackclient/tests/functional
-passenv =
+passenv =
OS_*
commands =
stestr run {posargs}