flake8-os-walk

Flake8 plugin which usage of os.walk().


Keywords
flake8, flake8-extensions, flake8-plugin, linter, python, python3
License
MIT
Install
pip install flake8-os-walk==0.4.0

Documentation

flake8-os-walk

Checks for uses of os.walk() without passing the onerror param.

Why

The os.walk() function has a major-gotcha which means it will silently fail (yield nothing) if the path passed to it is invalid (doesn't exits).

Also, this is an excuse for me to write my first flake8 plugin.