forbidden-call¶
Ban calls to configured functions, constructors, and helper APIs.
Message template¶
Do not call forbidden callable ‘{symbol}’.
Placeholder values are filled in when the violation is reported.
Settings¶
| Setting | Description | Type | Default |
|---|---|---|---|
| forbidden_calls | Callable symbols to forbid. Each entry has the form symbol[|message[|recommended_callable]], for example 'os.system|Use subprocess.run|subprocess.run'. | list | [] |