fix: update pylint config format for pyproject-fmt compatibility#1281
fix: update pylint config format for pyproject-fmt compatibility#1281adamtheturtle merged 1 commit intomainfrom
Conversation
Change MESSAGES CONTROL to MESSAGES-CONTROL to fix pre-commit lint failures on main. Made-with: Cursor
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.
| # multiple time (only on the command line, not in the configuration file where | ||
| # it should appear only once). See also the "--disable" option for examples. | ||
| "MESSAGES CONTROL".enable = [ | ||
| MESSAGES-CONTROL.enable = [ |
There was a problem hiding this comment.
Pylint silently ignores renamed MESSAGES-CONTROL section
High Severity
The change from "MESSAGES CONTROL" (quoted key with a space) to MESSAGES-CONTROL (bare key with a hyphen) alters the actual TOML key name. These are semantically different keys. Pylint recognizes MESSAGES CONTROL (space) or MESSAGES_CONTROL (underscore) as valid section names, but MESSAGES-CONTROL (hyphen) is not a recognized section name and will be silently ignored. This means both the enable and disable message lists will have no effect, potentially causing unexpected lint failures or missing warnings.


Fixes CI lint failures on main. Change MESSAGES CONTROL to MESSAGES-CONTROL for pyproject-fmt compatibility.
Made with Cursor
Note
Low Risk
Low risk: only reformats
pyproject.tomlPylint configuration keys (quoting/section naming) to satisfypyproject-fmtand fix CI lint parsing, with no runtime code changes.Overview
Fixes CI lint failures by updating the
[tool.pylint]configuration inpyproject.tomlto apyproject-fmt-compatible key format.This removes quoted section prefixes (e.g.,
"MASTER".*->MASTER.*) and renames the Pylint section key fromMESSAGES CONTROLtoMESSAGES-CONTROLwhile keeping the enabled/disabled message lists and other settings unchanged.Written by Cursor Bugbot for commit 659e9de. This will update automatically on new commits. Configure here.