Closed
Description
opened on Jan 2, 2024
Running ruff check --select TID252 /tmp/example.py
using version 0.1.9
on
from .. import foo
outputs
/tmp/example.py:1:1: TID252 Relative imports from parent modules are banned
I don't think this is a helpful message as it implies such imports don't work and doesn't suggest an improvement. It also doesn't match the style of other Ruff rule messages.
How about Prefer absolute imports to relative imports from parent modules
?
Activity