A plugin for flake8 finding use of functions that can be replaced by pathlib module.
conda install conda-forge::flake8-use-pathlib