-
|
I have a library with a private module like so: # _foo.py
def foo(x:int) -> None:
passWhen running ruff on my project, # at my project root
uvx ruff check --isolated --select D .I get no error. However renaming |
Beta Was this translation helpful? Give feedback.
Answered by
amyreese
Nov 26, 2025
Replies: 1 comment
-
|
I suspect this is a behavior of the D1xx rules, not Ruff. If I have both You can confirm what files Ruff is inspecting with the |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
tazr
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I suspect this is a behavior of the D1xx rules, not Ruff.
If I have both
foo.pyand_foo.pythat trigger an F401 error, then Ruff reports that in both files:You can confirm what files Ruff is inspecting with the
--show-filesflag: