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

SettingDescriptionTypeDefault
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 []