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
692 stars 49 forks source link

Fix bug with allow_indirect_imports #197

Closed seddonym closed 1 year ago

seddonym commented 1 year ago

Prior to this commit, forbidden contracts with allow_indirect_imports only checked imports between the source/forbidden modules specified, not the descendants of those modules.

Fixes https://github.com/seddonym/import-linter/issues/196.