Plugin for pylint which allows defining and checking variable name for exception (like e
or exc
or other)
Install:
pip install pylint-exception-var-name-plugin
Usage:
pylint --load-plugins pylint_exception_var_name_plugin FILES_TO_CHECK
Add to pylintrc
file to set ALLOWED_VAR_NAME
:
[VARIABLES]
exception-var-name=ALLOWED_VAR_NAME