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 ability to have sibling layers #187

Closed seddonym closed 1 year ago

seddonym commented 1 year ago

Supports independent sibling layers within a layers contract, using a pipe-separated syntax:

    [importlinter:contract:my-layers-contract]
    name = Contract with sibling layers
    type = layers
    layers=
        high
        medium_a | medium_b | medium_c
        low

Satisfies https://github.com/seddonym/import-linter/issues/157.