pre-commit: Integrate bandit
Run bandit check from per-commit so that the check is executed in pep8 job. Also remove requirements installed automatically by pre-commit from test-requirements. Change-Id: I45af8c47afb262882ebbee74ae52446fed741e26
This commit is contained in:
@@ -139,7 +139,7 @@ class DataSourceManager(object):
|
||||
ds.METRIC_MAP.update(self.metric_map[ds.NAME])
|
||||
return ds
|
||||
except Exception:
|
||||
pass
|
||||
pass # nosec: B110
|
||||
raise exception.MetricNotAvailable(metric=metric)
|
||||
|
||||
def load_metric_map(self, file_path):
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
import abc
|
||||
import collections
|
||||
|
||||
from lxml import etree
|
||||
from lxml import etree # nosec: B410
|
||||
from oslo_log import log
|
||||
|
||||
from watcher.objects import base
|
||||
|
||||
@@ -17,7 +17,7 @@ Openstack implementation of the cluster graph.
|
||||
"""
|
||||
|
||||
import ast
|
||||
from lxml import etree
|
||||
from lxml import etree # nosec: B410
|
||||
import networkx as nx
|
||||
from oslo_concurrency import lockutils
|
||||
from oslo_log import log
|
||||
|
||||
Reference in New Issue
Block a user