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
I'm playing around with ruff and I like it, however its docs mention that it omits "those stylistic rules made obsolete by the use of an autoformatter, like Black".
The real solution to this issue is to add black --check to our linting step.
Diagnostic output
n/a - this is a dev issue
Current Behavior
Our linter isn't consistently checking for the same rules that black is running.
Expected Behavior
We expect to catch formatting issues in a
poe test
run or through C/I, rather than always having to remember to runpoe format
.Repro Steps
One rule that isn't consistent is the line length rule. Here's how to repro:
Add a line to a .py file in the jrnl folder like so:
Run
poe lint
It will pass, but it shouldn't.
Run
poe format
and it will change into a state that should pass:Debug output
n/a
Other Information
Might be worth switching to a different linter. Maybe ruff, which runs much faster than flakeheaven.
The text was updated successfully, but these errors were encountered: