An open API service indexing awesome lists of open source software.

https://github.com/asherf/flake8-os-walk

Checks for uses of os.walk()
https://github.com/asherf/flake8-os-walk

flake8 flake8-extensions flake8-plugin linter python python3

Last synced: 8 months ago
JSON representation

Checks for uses of os.walk()

Awesome Lists containing this project

README

          

# flake8-os-walk

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

## Why

The [os.walk()](https://docs.python.org/3/library/os.html#os.walk) function has a [major-gotcha](https://blog.toolchain.com/os-walk-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.