diff options
| author | Claude <noreply@anthropic.com> | 2026-05-13 20:40:31 +0000 |
|---|---|---|
| committer | Claude <noreply@anthropic.com> | 2026-05-13 20:40:31 +0000 |
| commit | 36d8f3ee1e0caa54b041e2ee1b16425cf7a3044a (patch) | |
| tree | ed5c472a7d7b22bb638f440674849cdbd4a3e482 /scripts/doc-linter.py | |
| parent | 5d1c2d74d1e18e80b788e5778b10b94053343c2c (diff) | |
| download | vyos-documentation-36d8f3ee1e0caa54b041e2ee1b16425cf7a3044a.tar.gz vyos-documentation-36d8f3ee1e0caa54b041e2ee1b16425cf7a3044a.zip | |
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.
Diffstat (limited to 'scripts/doc-linter.py')
| -rw-r--r-- | scripts/doc-linter.py | 2 |
1 files changed, 1 insertions, 1 deletions
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: |
