Do not flag docstrings and comments lines with E501(linz-too-long) warnings #4982
Unanswered
vianmixtkz
asked this question in
Q&A
Replies: 1 comment 7 replies
-
Line length for docstrings and comments can be updated using [tool.ruff]
select = ["E", "W"]
line-length = 88
[tool.ruff.pycodestyle]
max-doc-length = 79 As for the mixed lines which contains trailing comments, it seems like only |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Ruff flags my docstrings and comments line that go over the specified limits with E501 and I don't like that.
How can I configure Ruff so that it ignores docstrings and comments when counting the number of characthers ?
I don't want it to flag my docstrings with lines that go over 80 characthers or lines that are pure comments line (i.e that starts with #) or even mixed lines (i.e lines that start with code and finishes with a comment)
Beta Was this translation helpful? Give feedback.
All reactions