Derived from the flake8-builtins linter.
What it does#
Checks for variable (and function) assignments that use the same name as a builtin.
Why is this bad?#
Reusing a builtin name for the name of a variable increases the difficulty of reading and maintaining the code, and can cause non-obvious errors, as readers may mistake the variable for the builtin and vice versa.
Builtins can be marked as exceptions to this rule via the
flake8-builtins.builtins-ignorelist configuration option.