A Python tool to enforce dependencies, using modular architecture π Open source π Installable via pip π§ Able to be adopted incrementally - β‘ Implemented with no runtime impact βΎοΈ Interoperable with your existing systems π¦ Written in rust
During investigation of #370 , I discovered that imports of the form from .. import module were being treated as if they were external imports, even though the package above was within a source root.
This is because the import visitor incorrectly assumed that a missing 'module' from an import AST node indicated a 'within-package' import, without handling parent traversal.
This PR fixes this issue and adds a regression test.
During investigation of #370 , I discovered that imports of the form
from .. import module
were being treated as if they were external imports, even though the package above was within a source root.This is because the import visitor incorrectly assumed that a missing 'module' from an import AST node indicated a 'within-package' import, without handling parent traversal.
This PR fixes this issue and adds a regression test.