Skip to content
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

Add support for .gitignore #53

Open
juanmah opened this issue Sep 21, 2020 · 3 comments
Open

Add support for .gitignore #53

juanmah opened this issue Sep 21, 2020 · 3 comments

Comments

@juanmah
Copy link

juanmah commented Sep 21, 2020

In my project, I have some files and folders excluded to sync with git.
In them, there are some python files which SHALL be ignored also for pip-missing-reqs.

Currently, I've these files/folders excluded with --ignore-file=.

It would be great that pip-missing-reqs could use .gitignore (with an optional parameter).
In instance, pip-missing-reqs --use-gitignore.

@adamtheturtle
Copy link
Owner

Thanks @juanmah for the suggestion. Is this something you have seen in other linters or similar tools? I am not familiar with this and am looking for inspiration and also to check my instinct that this would be a bit odd.

@juanmah
Copy link
Author

juanmah commented Sep 30, 2020

Yes. For example, I use vscode and the search function has an option to ignore files and folders that are in .gitignore.

@MrMino
Copy link
Collaborator

MrMino commented Mar 4, 2021

@adamtheturtle I think the best example of this idea can be found in ripgrep, which by default uses .ignore / .gitignore to exclude files from search.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants