Merge "pre-commit: Integrate bandit"

This commit is contained in:
Zuul
2025-03-11 09:58:29 +00:00
committed by Gerrit Code Review
7 changed files with 14 additions and 10 deletions

View File

@@ -142,7 +142,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):

View File

@@ -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

View File

@@ -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