-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ruff formatter conflicting lint rules #13
Comments
I've also not ignored line-too-long because I think that's something worth fixing manually if the linter and formatter can't get it squared away for us. All of these decisions have been made in the context of these assumptions:
|
The double-save doesn't bother me too intensely. I'm frequently reflexively hitting ctrl+s, so I probably won't notice most of the time. |
I have a strong preference for COM812. |
Sounds like we are good with the current config |
Background: https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules
Our ruff config ignores most of the rules listed on that page that end up being redundant. It leaves the following potentially conflicting rules in place:
because I think implicit string concatenation is too easy to miss when scanning code. I'd prefer concatenation to always be explicit.
There is a discussion going on regarding implicit string concatenation and how to remove the conflict: astral-sh/ruff#8272
Trailing Commas
Explanation and discussion at: astral-sh/ruff#9216 (comment)
I'd prefer to keep COM812 as an active rule and just do a double save when it shows up. I've done this in the past and it's slightly annoying but acceptable IMO. I could see how others would find this very annoying and be resistant. So, do you care either way?
The text was updated successfully, but these errors were encountered: