From 0141da42936154973676513a4980e0edda47ff54 Mon Sep 17 00:00:00 2001 From: Tek Date: Wed, 25 Mar 2026 18:23:08 -0400 Subject: [PATCH] Fixes bug in IOC import (#749) --- pyproject.toml | 8 ++++---- src/mvt/common/indicators.py | 4 +--- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 1001aca..e93e19c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -81,8 +81,8 @@ addopts = "-ra -q --cov=mvt --cov-report html --junitxml=pytest.xml --cov-report testpaths = ["tests"] [tool.ruff] -select = ["C90", "E", "F", "W"] # flake8 default set -ignore = [ +lint.select = ["C90", "E", "F", "W"] # flake8 default set +lint.ignore = [ "E501", # don't enforce line length violations "C901", # complex-structure @@ -95,10 +95,10 @@ ignore = [ # "E203", # whitespace-before-punctuation ] -[tool.ruff.per-file-ignores] +[tool.ruff.lint.per-file-ignores] "__init__.py" = ["F401"] # unused-import -[tool.ruff.mccabe] +[tool.ruff.lint.mccabe] max-complexity = 10 [tool.setuptools] diff --git a/src/mvt/common/indicators.py b/src/mvt/common/indicators.py index b8aa829..d30094f 100644 --- a/src/mvt/common/indicators.py +++ b/src/mvt/common/indicators.py @@ -52,9 +52,7 @@ class Indicators: if os.path.isfile(path) and path.lower().endswith(".stix2"): self.parse_stix2(path) elif os.path.isdir(path): - for file in glob.glob( - os.path.join(path, "**", "*.stix2", recursive=True) - ): + for file in glob.glob(os.path.join(path, "**", "*.stix2"), recursive=True): self.parse_stix2(file) else: self.log.error(