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 working on a project where we have certain types of lines we'd like to go past 120 characters to improve readability but otherwise enforce the 120 character limit with Ruff. Is there some way to make Ruff ignore lines starting with a specific pattern when linting? I know you can add a comment to disable specific lines but there's lots of these that would need to be ignored and having to manually add the comment to each new line of this type would be an additional developer burden and thing to remember.
In short I'd like to set a single parameter in Ruff configuration in style of "for lines starting with this pattern ignore the line length requirement".
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
I'm working on a project where we have certain types of lines we'd like to go past 120 characters to improve readability but otherwise enforce the 120 character limit with Ruff. Is there some way to make Ruff ignore lines starting with a specific pattern when linting? I know you can add a comment to disable specific lines but there's lots of these that would need to be ignored and having to manually add the comment to each new line of this type would be an additional developer burden and thing to remember.
In short I'd like to set a single parameter in Ruff configuration in style of "for lines starting with this pattern ignore the line length requirement".
Thank you for your time.
Beta Was this translation helpful? Give feedback.
All reactions