Replies: 1 comment 2 replies
-
That Ruff triggers E402 on your example does make sense to me. E402 enforces that all imports are at the top of the file. This isn't the case here because of your path-manipulation statements
Now, if it isn't important to you that imports are at the top, then I suggest to disable |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey there fellows,
I have quite a large python project with flask, with a main app (a directory called A with many directories inside).
In addition to A, I have several directories that are called
*_scripts
that usually call some functions from the main app( Directory A).Is this intended? If feel like it is a false positive.
example:
In nice_script.py I have the following:
but
from A.B.likable import some_function
prompts E402.You are much wiser and more experiences people of python, any advice? is it false positive?
I found some similer issues but all of them doesn't seem to solve this issue.
Beta Was this translation helpful? Give feedback.
All reactions