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 :( ) |



ruffuses this folder for some cache-related stuff, we ignore similar folders in this project.See https://docs.astral.sh/ruff/settings/#cache-dir