Skip to content

Commit

Permalink
tests: relax bandit dependency
Browse files Browse the repository at this point in the history
* Adapt bandit command parameters to make it work with the latest
  version of bandit allowing to relax the version constraint.
* See also: PyCQA/bandit#488

Change-Id: Ide0f7c05de141c6131e9340e61f821189ed503a4
  • Loading branch information
volans- committed May 6, 2020
1 parent 1308636 commit 5e6fa13
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

# Test dependencies
'tests': [
'bandit>=1.1.0,<1.6.0',
'bandit>=1.1.0',
'flake8>=3.2.1',
'flake8-import-order>=0.18.1',
'prospector[with_everything]>=0.12.4,<=1.1.6.2',
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ commands =
unit: py.test -p no:logging --strict --cov-report=term-missing --cov=cumin cumin/tests/unit {posargs}
unitbase: py.test -p no:logging --strict --cov-report=term-missing --cov=cumin --ignore=cumin/tests/unit/backends/test_openstack.py cumin/tests/unit {posargs}
# Avoid bandit assert_used (B101) in tests
bandit: bandit -l -i -r --exclude cumin/tests cumin/
bandit: bandit -l -i -r --exclude './cumin/tests' ./cumin/
bandit: bandit -l -i -r --skip B101 cumin/tests
prospector: prospector --profile "{toxinidir}/prospector.yaml" cumin/
sphinx: python setup.py build_sphinx -b html
Expand Down

0 comments on commit 5e6fa13

Please sign in to comment.