forbidden-import¶
Ban imports that cross configured package or module boundaries.
Message template¶
Do not import across forbidden boundary ‘{boundary}’.
Placeholder values are filled in when the violation is reported.
Settings¶
| Setting | Description | Type | Default |
|---|---|---|---|
| forbidden_imports | Import boundaries to forbid. Each entry has the form boundary[|message], for example 'legacy.api|Import from app.api'. | list | [] |