[codex] Fix doccmd pylint ignores#3010
Conversation
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 4585e0d. Configure here.
| "deptry==0.25.1", | ||
| "doc8==2.0.0", | ||
| "doccmd==2026.5.6", | ||
| "doccmd==2026.5.16", |
There was a problem hiding this comment.
Ruff per-file-ignores not updated for new directory structure
Medium Severity
The doccmd version bump changes generated file paths to use doccmd_<hash>/ directories, and the pylint per-file-ignores were updated accordingly, but the ruff lint.per-file-ignores patterns at "doccmd_*.py" and "docs/source/*.py" were not. Since * doesn't match path separators, files like doccmd_hash/example.py won't match doccmd_*.py, causing ruff to flag S101 (assert usage) in documentation examples that use assert (confirmed in README.rst and docs/source/index.rst).
Additional Locations (1)
Reviewed by Cursor Bugbot for commit 4585e0d. Configure here.


Updates
doccmdto 2026.5.16 and extends the pylint per-file ignores for generated documentation examples.The
doccmdupdate now writes generated examples insidedoccmd_<hash>/directories, so the previous flat-file ignore patterns no longer suppressedinvalid-namefor those transient files.Validated with
doccmdrunningpylint, thepylint-docsprek hook,pyproject-fmt, and the repository pre-push hooks.Note
Low Risk
Low risk: only bumps a dev-only documentation generator and adjusts
pylintignore globs to match its new generated-file layout; no runtime code or production dependencies change.Overview
Updates the dev dependency
doccmdto2026.5.16.Expands
pylintper-file-ignorespatterns to also suppressinvalid-namefor generated doc examples that are now written under nesteddoccmd_*/*directories (including underdocs/source/).Reviewed by Cursor Bugbot for commit 4585e0d. Bugbot is set up for automated code reviews on this repo. Configure here.