You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
prek update quotes revisions that YAML already parses as strings #2852
I have searched the issue list for similar bug reports.
Summary
Since #1936, prek update adds quotes to an updated rev that was unquoted before, whenever the new revision starts with a digit. That also happens for versions with more than one dot, such as 0.12.24, which YAML already reads as a string:
Since #1379 aims to preserve the existing quoting style, I would expect update to leave such a revision unquoted, and to add quotes only when the new value would otherwise not be parsed as a string, for instance 2026.4, 1e3, 0x1F, a frozen SHA that consists of digits only (#1343), or values like true and null.
Activity
Preserve unquoted dotted revisions in `prek update` (#2853)