seddonym / import-linter

Import Linter allows you to define and enforce rules for the internal and external imports within your Python project.
https://import-linter.readthedocs.io/
BSD 2-Clause "Simplified" License
664 stars 45 forks source link

Add support for non-independent sibling modules in layer contracts #209

Closed Peter554 closed 8 months ago

Peter554 commented 8 months ago

This PR contains the changes needed within import-linter to support https://github.com/seddonym/import-linter/issues/208.

This continues the prerequisite work in grimp to support this feature https://github.com/seddonym/grimp/pull/136.

Peter554 commented 8 months ago

hi @seddonym 👋 here's a PR for the import-linter changes. It seems to work well for me when testing against the latest version of grimp, looks like you need to approve the workflow for CI to run.

seddonym commented 8 months ago

Grimp 3.2 is now released so you can update the dependencies.

Peter554 commented 8 months ago

Thanks - updated the grimp version here now, so I think we're ready to go.