You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
simplint no longer reports what a Ruff rule reports, preview rules included, whether or not the project's Ruff configuration selects that rule; before, a rule left a case to Ruff only while Ruff ran the rule. Rules that already left cases to Ruff now always do, and these rules leave Ruff's cases for the first time: private-import-path (PLC2701), init-module-content (F401), up-backport-import (A004, when it has no fix), stdlib-mock (TID251, when banned-api bans the import), section-comment (E265 and E266, for a heading written as prose), function-docstring and test-module-docstring (D418 and D419, when they have no fix) and unused-default (PT028, when it has no fix). Select the Ruff rules to have these cases reported. undocumented-public-api still leaves a case to Ruff's D1 rules only while they run, since the recommended setup turns them off. all-format and string-concatenation also still leave a COM812 or ISC003 case to Ruff only while those run, since ruff format moves the line breaks the two rules read (#126) by @gaborbernat.
A file that does not parse is skipped with a warning instead of reporting its syntax errors as invalid-syntax, which Ruff already reports. A run whose only problem is such a file exits with 0 (#126) by @gaborbernat.
Bug fixes
blanket-ignore no longer reports # type: ignore [code], with spaces before the codes, as blanket; mypy and Ruff read the codes (#126) by @gaborbernat.
single-use-variable reports x = ...; return x in a generator again: it left the case to Ruff's RET504, which skips generators, so neither tool reported it (#126) by @gaborbernat.
undocumented-public-api reports a function whose decorator pydocstyle's ignore-decorators lists: it left the function to Ruff's D103, which skips it (#126) by @gaborbernat.
Documentation
A design principles page explains what simplint reports, when it fixes, and how it splits the work with Ruff (#126) by @gaborbernat.