From 8b416714094c0d7316e15512d804f175cd4876a6 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 30 May 2025 12:09:16 -0600 Subject: [PATCH] build(deps): bump flake8 from 7.1.1 to 7.2.0 (#2648) * build(deps): bump flake8 from 7.1.1 to 7.2.0 Bumps [flake8](https://github.com/pycqa/flake8) from 7.1.1 to 7.2.0. - [Commits](https://github.com/pycqa/flake8/compare/7.1.1...7.2.0) --- updated-dependencies: - dependency-name: flake8 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] * fix lints (#2671) --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Mike Hunhoff --- pyproject.toml | 2 +- scripts/capa2yara.py | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 9b2613ef..14e2793e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -125,7 +125,7 @@ dev = [ "pytest==8.0.0", "pytest-sugar==1.0.0", "pytest-instafail==0.5.0", - "flake8==7.1.1", + "flake8==7.2.0", "flake8-bugbear==24.12.12", "flake8-encodings==0.5.1", "flake8-comprehensions==3.16.0", diff --git a/scripts/capa2yara.py b/scripts/capa2yara.py index 321fa798..0315d60e 100644 --- a/scripts/capa2yara.py +++ b/scripts/capa2yara.py @@ -175,8 +175,6 @@ def convert_rule(rule, rulename, cround, depth): depth += 1 logger.info("recursion depth: %d", depth) - global var_names - def do_statement(s_type, kid): yara_strings = "" yara_condition = ""