Folders with trailing slashes in the exclude or extend-exclude in ~/.flake8 are ignored:
> cat ~/.flake8
[flake8]
exclude = Bug/
> flake8 --config ~/.flake8 .
./Bug/test.py:3:1: B001 Do not use bare `except:`, it also catches unexpected events like memory errors, interrupts, system exit, and so on. Prefer excepting specific exceptions If you're sure what you're doing, be explicit andwrite `except BaseException:`.
./Bug/test.py:3:1: E722 do not use bare 'except'
> flake8 --exclude Bug/ .
>
how did you install flake8?
unmodified output of
flake8 --bug-report
describe the problem
Folders with trailing slashes in the exclude or extend-exclude in ~/.flake8 are ignored:
I think this is the exact same issue as https://github.com/PyCQA/flake8/issues/738 that is 3 years old?