-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Remove obsolete "E501"
line in pyproject.toml
#5539
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
Conversation
As far as I can see, Ruff does not include |
Yes, this got missed when we moved from |
Thanks for the feedback! — I'll get back to this after #5542 is merged. |
7b209be
to
4676ef9
Compare
@henryiii We're getting 249 This is with the default Here are all the line lengths > 88:
Where do we want to cut off? |
"E5"
to [tool.ruff.lint]
extend-select
to enable E501 Line too long
errors
Ruff format makes these pretty rare, the only times it hits are for things like long strings. I'd say I'd be fine to leave the default (don't enable E5) since we use ruff format. There's a reason it's on in the default selection. :) |
pyproject.toml
Outdated
@@ -55,6 +55,7 @@ extend-select = [ | |||
"N", # pep8-naming | |||
"ARG", # flake8-unused-arguments | |||
"C4", # flake8-comprehensions | |||
"E5", # pycodestyle |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And drop this one.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
I'd prefer a limit (same as for code), but oh well.
Is my understanding correct: Do you want to leave the line-length for long strings unlimited? |
4676ef9
to
eb85997
Compare
"E5"
to [tool.ruff.lint]
extend-select
to enable E501 Line too long
errors"E501"
line in pyproject.toml
Description
With PR #4912 we removed black:
So this isn't true anymore:
pybind11/pyproject.toml
Line 72 in d8565ac
I tried to remove that line, but it doesn't make a difference, ruff doesn't produce the
E501
error. See dummy test case, which doesn't trigger any ruff errors.It would be nice to see that error, even if we need to fix manually.
@henryiii: Do you happen to know what suppresses the
E501
?Suggested changelog entry: