mirror of
https://github.com/adrienverge/yamllint.git
synced 2025-02-25 18:55:20 -06:00
style: silence bugbear warning
B007 Loop control variable `dirnames` not used within loop body
This commit is contained in:
parent
254a218782
commit
3e126942e9
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user