From 36d8f3ee1e0caa54b041e2ee1b16425cf7a3044a Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 13 May 2026 20:40:31 +0000 Subject: doc-linter: rename unused walker var to _dirs CodeRabbit nit (Ruff B007): the dirs variable from os.walk(DOCS_ROOT) in the auto-discover fallback is unused. Renaming to _dirs makes the intent explicit and silences the warning. --- scripts/doc-linter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/doc-linter.py') diff --git a/scripts/doc-linter.py b/scripts/doc-linter.py index c3304718..b1977f84 100644 --- a/scripts/doc-linter.py +++ b/scripts/doc-linter.py @@ -261,7 +261,7 @@ def main(): if handle_file_action(file) is False: bool_error = False except Exception as e: - for root, dirs, files in os.walk(DOCS_ROOT): + for root, _dirs, files in os.walk(DOCS_ROOT): path = root.split(os.sep) for file in files: if file.endswith(SUPPORTED_EXTS) and "_build" not in path: -- cgit v1.2.3