Policy¶
Configurable policy rules for architecture and naming boundaries.
Enable with:
enable = ["policy"]
Rule |
Message |
Python |
Autofix |
|---|---|---|---|
Do not call forbidden callable ‘{symbol}’. |
Any |
No |
|
Do not import across forbidden boundary ‘{boundary}’. |
Any |
No |
|
Do not use forbidden {kind} name ‘{name}’. |
Any |
No |
|
{target} has {actual_lines} lines, exceeding the configured limit of {max_lines}. |
Any |
No |
|
Use tempfile context managers instead of mkstemp or mkdtemp. |
Any |
No |