Derived from the flake8-simplify linter.
What it does#
Checks for uses of the builtin
open() function without an associated context
Why is this bad?#
If a file is opened without a context manager, it is not guaranteed that the file will be closed (e.g., if an exception is raised), which can cause resource leaks.