chore(deps): update pre-commit hook google/yamlfmt to v0.21.0 #280
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
v0.20.0→v0.21.0Note: The
pre-commitmanager in Renovate is not supported by thepre-commitmaintainers or community. Please do not report any problems there, instead create a Discussion in the Renovate repository if you have any questions.Release Notes
google/yamlfmt (google/yamlfmt)
v0.21.0Compare Source
Sorry to folks who were likely waiting on the stuff in this release, it's pretty packed. I got sick in December and took my holiday leave early, and I decided to fully and completely disconnect. Lots of stuff packed into this one now that I'm back. Happy new year!
Features
Force single or double quotes #288
You can now force all quoted strings in a yaml document to be
'or". See thebasicformatter docs for more info.KYAML Formatter #302
yamlfmtcan now support the new KYAML format from the Kubernetes project. The support for this is via a new formatter type calledkyaml. I built support for alternate formatters into the architecture ofyamlfmtall the way back when I first started the tool, but this is the first time I'm actually publishing a new formatter. I recommend a full read of the formatter documentation to get a sense of how to use this alternate formatter.Bug Fixes
Gitlab output format #272
I don't use Gitlab and didn't implement the feature so I'm not sure if this has been broken the whole time or if there was a schema change somewhere that bricked it, but Gitlab output format from
yamlfmtwas missing some required fields. This should work now with the new fields added into the output schema./dev/stdinas an argument instead of-did not work #291You're only allowed to read from
stdinonce in POSIX, but I inadvertently had a codepath that would read the file for a different purpose before reading it for formatting. This causedyamlfmtnot to work under that circumstance. This edge case is handled now.Filepath collector panic #300
In a scenario where
filepath.Walkfails to read something from the filesystem, I wasn't handling the error case properly. This never came up because I never had an error case ever appear locally and the linter that would yell at me about missed error checks didn't pick up that particular pattern thatfilepath.Walkpropogates errors with. There should no longer be panics in error scenarios; new behaviour is that paths that failed to read will be surfaced and all other successful reads will be formatted.Contributions
Thanks to @slipknois for fixing the Gitlab output format.
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.