summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorStephen Finucane <sfinucan@redhat.com>2021-01-08 10:45:10 +0000
committerStephen Finucane <sfinucan@redhat.com>2021-01-18 15:48:28 +0000
commite103baa002e54303b08630c436dfc7b0b8a013de (patch)
treee4145dd64871b420c813fdc07725202587becdf5 /tox.ini
parent0a228dea2ee96ec3eabed3361ca22502d0bbd4a1 (diff)
downloadoslo-policy-e103baa002e54303b08630c436dfc7b0b8a013de.tar.gz
pre-commit: Resolve dependency conflicts
hacking 3.1.0 depended on 'flake8<3.8.0,>=3.6.0', while we were specifying flake 3.8.3. This resulted in an error when using the dependency resolver introduced in pip 20.3. Resolve this by bumping to hacking 3.2.0. We also remove bandit and pre-commit from test-requirements, since these are linters which are not managed by upper-constraints and are not necessary to run tests. oslo.context is also specified in both requirements.txt and test-requirements.txt, so we remove it from the latter. Change-Id: I829870c327b73b583877b9b969ee38f0bcaa1495 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini4
1 files changed, 2 insertions, 2 deletions
diff --git a/tox.ini b/tox.ini
index 0d54506..aed9317 100644
--- a/tox.ini
+++ b/tox.ini
@@ -14,7 +14,8 @@ commands = stestr run --slowest {posargs}
[testenv:pep8]
deps =
- -r{toxinidir}/test-requirements.txt
+ pre-commit>=2.6.0 # MIT
+ bandit>=1.6.0,<1.7.0 # Apache-2.0
commands =
pre-commit run -a
# Run security linter
@@ -66,4 +67,3 @@ deps =
-c{toxinidir}/lower-constraints.txt
-r{toxinidir}/test-requirements.txt
-r{toxinidir}/requirements.txt
- -r{toxinidir}/doc/requirements.txt