-
Notifications
You must be signed in to change notification settings - Fork 19
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
.gitignore
from parent git repository is used while it shouldn't
#882
Comments
Agree that we should avoid reading But testing a bit the changes, this made me realise that we probably don't handle
where $ deptry .
[...]
Scanning 0 file...
[...] $ deptry src
[...]
Scanning 1 file...
[...] Reading |
Tiny addition: There must be some kind of clever library at work, as even if I move the git ignore patterns from |
.gitignore
from parent git repository
.gitignore
from parent git repository .gitignore
from parent git repository is used while it shouldn't
My setup may be not exactly standard, but
deptry
is the only tool that has a problem with it:Up in my filesystem hierarchy there lingers a Git repository which ignores everything (
*
) and only a few files/directories are excluded from this catch all ignore. This works 100% fine with VSCode Git, command line Git and every other Git related tool I can think of.Only
deptry
refuses to find any file with this setup, as it somehow climbs up in hierarchy to find my.gitignore
->Is there a way to fix this gracefully?
The text was updated successfully, but these errors were encountered: