ruff
3f7833e1 - Check Ruff rule selectors in inline script metadata (#30615)

Commit
9 hours ago
Check Ruff rule selectors in inline script metadata (#30615) Today, `renamed-rule` (RUF202) and `rule-codes-in-selectors` (RUF201) diagnose and fix selectors in Ruff configuration files, but skip Ruff settings embedded in PEP 723 scripts. This PR applies the same checks to inline `[tool.ruff]` settings and maps diagnostics and fixes back to the Python comments, so scripts receive the same configuration guidance as TOML files. Testing: Ran the selector CLI tests, configuration generators, and changed-file hooks.
Author
Parents
Loading