Skip to content
Commit 0d3cc254 authored by John Watson's avatar John Watson
Browse files

Clear os.walk's dirnames to properly exclude dirs

I have a project:
`./foo/__init__.py`
`./foo/bar/__init__.py`
`./foo/baz.py`
`./__init__.py`
`./qux.py`

Running: `flake8 --exclude="foo" ./`

Checks:
`./foo/bar/__init__.py`
`./__init__.py`
`./qux.py`

This patch prevents the continued walking of **foo**'s subdirectories and not
just files.
parent 264bc037
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment