hartwork / no-cyclic-imports

:recycle: Tool to detect and report on cyclic imports in a Python codebase
https://pypi.org/project/no-cyclic-imports/
GNU Affero General Public License v3.0
9 stars 1 forks source link

False negative for `from . import [..]` #18

Open r4f opened 3 months ago

r4f commented 3 months ago

If in two sibiling modules a and b, crosswise imports are stated as from . import b and from . import a respectively, then the targets b and a (the argument named object_name) are disregarded in https://github.com/hartwork/no-cyclic-imports/blob/d83976a6085851d58215c0f6e398195284079080/no_cyclic_imports/_imports.py#L127C1-L133C14

hartwork commented 3 months ago

@r4f nice catch! :+1: