Pull requests welcome, note that this also has to work well for windows which doesn't adhere to XDG.
Is there any documentation for pre-commit on Windows?
Is it supposed to run on:
- the official Python release for Windows;
- all of the above?
On which Windows version is it supposed to run?
How do you proceed to test it on Windows? Do you use a VM or something?
I've been hesitant to move the directory as it'd be a bit awkward for current users (though perhaps
clean can just be updated to remove both paths for some amount of time?)
I understand. But it won't break anything since it would just re-cache all the needed stuff, right? We can imagine three scenarios if
~/.pre-commit already exists:
1. Move the existing
$HOME/.cache, with or without warning (see
1. Don't move the existing
~/.pre-commit, but display a warning before re-caching;
3. Just re-cache the needed parts without displaying any message (and maybe delete the existing
Well, it has been done already with the transition from
.pre-commit-hooks.yaml in some sort.