style: silence bugbear warning

B007 Loop control variable `dirnames` not used within loop body
This commit is contained in:
Dimitri Papadopoulos 2024-01-08 07:45:58 +01:00 committed by Adrien Vergé
parent 254a218782
commit 3e126942e9

View File

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