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

Fix bug with allow_indirect_imports #197

Closed seddonym closed 11 months ago

seddonym commented 11 months 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.