-
-
Notifications
You must be signed in to change notification settings - Fork 310
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Excluding dot-files/folders also excludes current directory '.' #360
Comments
In GitLab by @philipp.eib on May 4, 2020, 02:46 changed the description |
In GitLab by @philipp.eib on May 4, 2020, 02:58 Just found out that in my case I can fix it with a trailing
If you think the point raised originally still holds, feel free to keep the issue open. |
In GitLab by @asottile on May 4, 2020, 12:58 definitely agree that this is a bug, probably needs an exclusion for would you like to work on this? I think the necessary code is in |
In GitLab by @asottile on May 7, 2020, 12:35 mentioned in merge request !424 |
In GitLab by @asottile on May 7, 2020, 12:36 I decided to fix this in !424 -- let me know what you think and if this fixes your problem I special cased |
In GitLab by @asottile on May 7, 2020, 12:38 closed via merge request !424 |
In GitLab by @philipp.eib on May 10, 2020, 01:33 Sorry for not getting back to you, I was pretty swamped last week. I have tried the latest master and the problem seems fixed, thanks 👍 |
In GitLab by @philipp.eib on May 4, 2020, 02:45
Installed with
pip install --user flake8
unmodified output of flake8 --bug-report
I've tried to exclude all directories starting with a
.
from the checks.When calling
flake8 --exclude=.*
in the project root, however, flake8 does no checks at all.Checking the verbose debug logging following line appears
It seems that the implicit "current directory"
.
is excluded because of the.*
pattern.Calling flake8 like this
flake8 --exclude=.* ../<project_root>
works, however, although also technically starting with a.
(it seems..
is already special-cased?)In summary, the
exclude
pattern should not exclude the current directory.
The text was updated successfully, but these errors were encountered: