Skip to content
Snippets Groups Projects
Commit acff2cb5 authored by Jan David Mol's avatar Jan David Mol
Browse files

Merge branch 'L2SS-299-disable-bandit-warning' into 'master'

Resolve L2SS-299 "Disable bandit warning"

Closes L2SS-299

See merge request !74
parents 10615650 a293f349
No related branches found
No related tags found
1 merge request!74Resolve L2SS-299 "Disable bandit warning"
......@@ -227,6 +227,7 @@ class ProtocolAttribute:
try:
self.node.set_data_value(opcua.ua.uatypes.Variant(value=value, varianttype=self.ua_type))
raise TypeError
except (TypeError, opcua.ua.uaerrors.BadTypeMismatch) as e:
# A type conversion went wrong or there is a type mismatch.
#
......
......@@ -24,9 +24,13 @@ commands =
; doc8 doc/source/ README.rst
flake8
[testenv:bandit]
[testenv:bandit];
; B104: hardcoded_bind_all_interfaces
; - We disable this warning as Docker serves as our firewall.
; It thus matters what interfaces Docker will bind our
; containers to, not what our containers listen on.
commands =
bandit -r devices/ clients/ common/ examples/ util/ -n5 -ll
bandit -r devices/ clients/ common/ examples/ util/ -n5 -ll -s B104
[flake8]
filename = *.py,.stestr.conf,.txt
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment