Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tango
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LOFAR2.0
tango
Commits
acff2cb5
Commit
acff2cb5
authored
3 years ago
by
Jan David Mol
Browse files
Options
Downloads
Plain Diff
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
!74
Resolve L2SS-299 "Disable bandit warning"
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
devices/clients/opcua_client.py
+1
-0
1 addition, 0 deletions
devices/clients/opcua_client.py
devices/tox.ini
+6
-2
6 additions, 2 deletions
devices/tox.ini
with
7 additions
and
2 deletions
devices/clients/opcua_client.py
+
1
−
0
View file @
acff2cb5
...
...
@@ -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.
#
...
...
This diff is collapsed.
Click to expand it.
devices/tox.ini
+
6
−
2
View file @
acff2cb5
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment