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 .ruff_cache/
to .gitignore
#110983
Add .ruff_cache/
to .gitignore
#110983
Conversation
Is this needed? They already contain their own ❯ cat .ruff_cache/.gitignore
*
❯ cat ./Lib/test/.ruff_cache/.gitignore
* |
Ah, good point. Yes, I seem to have a |
I feel like tools should probably parse |
Looks like VSCode is consistent with
I don't really care enough about this change to continue this discussion. |
yeah, I don't really care too much either. If I'll wait to see if @hugovk agrees, though. |
Sure, fine to add it. But now I'm curious...
❯ git check-ignore -v build
.gitignore:119:/build/ build
The ❯ git check-ignore -v .ruff_cache
But Git only tracks files, not directories! And the files in that directory are correctly ignored: ❯ git check-ignore -v .ruff_cache/CACHEDIR.TAG
.ruff_cache/.gitignore:1:* .ruff_cache/CACHEDIR.TAG
So that all tracks. I just installed VSCode, but nothing is showing as ignored. Do you need to do something to enable Git ignoring? With PyCharm you need to open a relevant |
( sorry, I am preparing a conference talk, so I cannot continue digging :( ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good luck with the prep!
ruff
uses this folder for some cache-related stuff, we ignore similar folders in this project.See https://docs.astral.sh/ruff/settings/#cache-dir