py-path (PTH124)
Derived from the flake8-use-pathlib linter.
What it does
Checks for uses of the py.path
library.
Why is this bad?
The py.path
library is in maintenance mode. Instead, prefer the standard
library's pathlib
module, or third-party modules like path
(formerly
py.path
).
Examples
Use instead: