Derived from the flake8-use-pathlib linter.
What it does#
Checks for uses of
Why is this bad?#
pathlib module in the standard library should be used for path
manipulation. It provides a high-level API with the functionality
needed for common operations on
If not all parts of the path are needed, then the
attributes of the
Path object should be used. Otherwise, the
attribute can be used as shown in the last example.