-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Ruff incorrectly ignores Python files included by negated pattern in .gitignore #8753
Comments
@BurntSushi -- We use the |
Seems like this might be BurntSushi/ripgrep#1050 |
It might also be this: BurntSushi/ripgrep#1757 (A fix was merged recently but I believe it has not been released yet.) But yes, this looks like a bug in the |
I would expect files that are checked into git with |
The |
@BurntSushi - Did that fix go out in the latest version of ignore? |
Yeah if the issue here is BurntSushi/ripgrep#1757 then that's in the latest But BurntSushi/ripgrep#1050 remains unfixed. |
I actually can't reproduce this on v0.1.6. @henribru - is that the exact pattern and directory structure you were using? |
Yes. But I discovered something curious: It only seems to reproduce on Windows. |
Given the following .gitignore:
and a file
src/foo.py
,ruff src/
outputswarning: No Python files found under the given path(s)
. Given that Git includes this file due to the negated pattern overriding the*
, this seems like a bug.This is with 0.1.6 and no Ruff configuration in
pyproject.toml
.The text was updated successfully, but these errors were encountered: