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()
- Host: GitHub
- URL: https://github.com/asherf/flake8-os-walk
- Owner: asherf
- License: mit
- Created: 2020-02-12T16:56:21.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-03-14T18:14:07.000Z (almost 6 years ago)
- Last Synced: 2025-02-26T10:03:08.177Z (about 1 year ago)
- Topics: flake8, flake8-extensions, flake8-plugin, linter, python, python3
- Language: Python
- Size: 10.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.