Skip to content

Commit dc74c31

Browse files
elajkatbrianphaley
authored andcommitted
Bandit: add B311 to skiplist
Bandit 1.8.4 is more strict for random functions, see: [1], to avoid pep8 failures due to the few random calls in Neutron, skip B311 [1]: https://github.com/PyCQA/bandit/releases/tag/1.8.4 Change-Id: I1a2119221be57afaa94a94ecb1448196802f041b
1 parent 9854c4c commit dc74c31

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tox.ini

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,9 @@ description =
279279
Run bandit security checks.
280280
deps = {[testenv:pep8]deps}
281281
# B104: Possible binding to all interfaces
282-
commands = bandit -r neutron -x tests -n5 -s B104
282+
# B311: Standard pseudo-random generators are not suitable for
283+
# security/cryptographic purposes
284+
commands = bandit -r neutron -x tests -n5 -s B104,B311
283285

284286
[testenv:bashate]
285287
description =

0 commit comments

Comments
 (0)