Closed lorenzwalthert closed 1 month ago
ah this is probably a bug with pre-commit itself -- surprising that I didn't hit this with my testing (the token has None as it's quote instead of strings). will try and get a fix for that!
Thanks @asottile, and sorry my reprex is a bit convoluted but I am sure you can derive a more clean one if needed.
nah this was perfect -- thank you for being thorough in your reproduction.
this will get fixed by https://github.com/pre-commit/pre-commit/pull/3324 (and the equivalent in the autoupdater
service) so you should see the correct values on next week's autoupdate (you can either choose to fix the PR manually, or close it and it'll get recreated next week without the bug)
sorry for the inconvenience! yet another annoying quirk with pyyaml :)
Great. Thanks so much.
my
.pre-commit-config.yaml
from https://github.com/lorenzwalthert/precommit looked like this:and pre-commit.ci turned it into
and then failed: