Add a new rule to warn against usage of __file__
module attribute
#9122
Labels
rule
Implementing or modifying a lint rule
__file__
module attribute
#9122
Using the
__file__
module attribute can be problematic in library code. According to PyOxydizer:This is also a problem for zipapps.
Using
__file__
is fine for scripts, so if this accepted I'm not sure what plugin this make the most sense to live in.The text was updated successfully, but these errors were encountered: