Ruff doesnt pick up TODO: #10975
-
Hi, I'm probably just doing something stupid, but in VScode Ruff (or pylance for that matter) doesn't pick up TODO: comments, which they used to for me some time ago. It looks like this: ruff check --show-settings, dint show anything that relates to TODO from what I could see Vs code 1.87.2 Init lines from the output:
I hope someone can help me diagnose this. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hi. I'm not sure I understand what the expected output is. Do you expect lint errors for todo comments? Can you share a specific example (or say which line in your screenshot should be flagged)? What's your Ruff configuration? |
Beta Was this translation helpful? Give feedback.
-
Hi MichaResier, thanks. Perhaps I have other problems too, as I can't get line-length E501 to trigger either. Still other warnings and errors work fine. Only explicit configs that I can find that I have put in is:
I installed ruff into my env so now I have 0.3.7:
ruff --show-settings : output |
Beta Was this translation helpful? Give feedback.
You have to enable said rules. They aren't part of the default rule set. See [https://docs.astral.sh/ruff/linter/#rule-selection].
In your case, you want
--extend-select=E501 --extend-select=TD
(I think)