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):
|
||||
|
||||
Reference in New Issue
Block a user