INP001 triggered in constants directory #15134
-
Hey there fellows, I have quite a large python project with flask, with a main app (a directory called A with many directories inside). Inside of A there are 5 directory:
Due to the fact it is a Flask project, we have (we run Is this intended? If feel like it is a false positive. example:
In sites.py I have the following:
but You are much wiser and more experiences people of python, any advice? is it false positive? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @remchuk Thanks for the detailed write-up. The Python documentation has a section that explains when namespace packages are the most useful. You'll know best if this applies to your project or if you have other reasons why the "caveats of namespace packages" are okay in your project. If you're uncertain, I'd recommend you to stick to regular python packages (add |
Beta Was this translation helpful? Give feedback.
Hi @remchuk
Thanks for the detailed write-up. The Python documentation has a section that explains when namespace packages are the most useful. You'll know best if this applies to your project or if you have other reasons why the "caveats of namespace packages" are okay in your project. If you're uncertain, I'd recommend you to stick to regular python packages (add
__init__.py
files).