From 3e126942e98ee2c1dd937a79262a834f56c30376 Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> Date: Mon, 8 Jan 2024 07:45:58 +0100 Subject: [PATCH] style: silence bugbear warning B007 Loop control variable `dirnames` not used within loop body --- yamllint/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yamllint/cli.py b/yamllint/cli.py index 1050d95..8d13000 100644 --- a/yamllint/cli.py +++ b/yamllint/cli.py @@ -27,7 +27,7 @@ from yamllint.linter import PROBLEM_LEVELS def find_files_recursively(items, conf): for item in items: if os.path.isdir(item): - for root, dirnames, filenames in os.walk(item): + for root, _dirnames, filenames in os.walk(item): for f in filenames: filepath = os.path.join(root, f) if conf.is_yaml_file(filepath):