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
using ruff 0.5.1 I don't think there's a way to have a different line-length setting per file. I can disable E501, but I cannot tweak it, for the occasional file the just has a lot of little bit too long lines. like I'm okay with 100 instead of 88, but not 120, this would be really hard to do in pyproject.toml, but I'm hoping some at least we could get a pragma for the top of a file. e.g. # ruff: setting: line-length: 98
this is especially annoying working with AI because it doesn't know how to generate short lines.
The text was updated successfully, but these errors were encountered:
I think this is similar to #7696 and I propose that we merge the issues. The main difference is that you propose the use of pragma comments.
Are all these files that need a longer line length in the same directory? If so, then you can add a new ruff.toml inside that directory, set it to extend = <base_config_path> your base configuration and change the line-length. Ruff then applies this configuration to all files in that directory (and its sub-directories)
Another alternative is to use ruff format which breaks the lines for you (or your AI ;)).
using ruff 0.5.1 I don't think there's a way to have a different line-length setting per file. I can disable E501, but I cannot tweak it, for the occasional file the just has a lot of little bit too long lines. like I'm okay with 100 instead of 88, but not 120, this would be really hard to do in pyproject.toml, but I'm hoping some at least we could get a pragma for the top of a file. e.g.
# ruff: setting: line-length: 98
this is especially annoying working with AI because it doesn't know how to generate short lines.
The text was updated successfully, but these errors were encountered: