Commit efc1ef3
authored
chore(deps): update pre-commit hook google/yamlfmt to v0.21.0 (#62)
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [google/yamlfmt](https://redirect.github.com/google/yamlfmt) |
repository | minor | `v0.20.0` → `v0.21.0` |
Note: The `pre-commit` manager in Renovate is not supported by the
`pre-commit` maintainers or community. Please do not report any problems
there, instead [create a Discussion in the Renovate
repository](https://redirect.github.com/renovatebot/renovate/discussions/new)
if you have any questions.
---
### Release Notes
<details>
<summary>google/yamlfmt (google/yamlfmt)</summary>
###
[`v0.21.0`](https://redirect.github.com/google/yamlfmt/releases/tag/v0.21.0)
[Compare
Source](https://redirect.github.com/google/yamlfmt/compare/v0.20.0...v0.21.0)
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](https://redirect.github.com/google/yamlfmt/issues/288)
You can now force all quoted strings in a yaml document to be `'` or
`"`. See the [`basic` formatter docs for more
info](https://redirect.github.com/google/yamlfmt/blob/main/docs/config-file.md#configuration-1).
#### KYAML Formatter
[#​302](https://redirect.github.com/google/yamlfmt/issues/302)
`yamlfmt` can now support the new [KYAML format from the Kubernetes
project](https://kubernetes.io/docs/reference/encodings/kyaml/). The
support for this is via a new formatter type called `kyaml`. I built
support for alternate formatters into the architecture of `yamlfmt` all
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](https://redirect.github.com/google/yamlfmt/blob/main/docs/config-file.md#formatter)
to get a sense of how to use this alternate formatter.
### Bug Fixes
#### Gitlab output format
[#​272](https://redirect.github.com/google/yamlfmt/issues/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 `yamlfmt` was
missing some required fields. This should work now with the new fields
added into the output schema.
#### `/dev/stdin` as an argument instead of `-` did not work
[#​291](https://redirect.github.com/google/yamlfmt/issues/291)
You're only allowed to read from `stdin` once in POSIX, but I
inadvertently had a codepath that would read the file for a different
purpose before reading it for formatting. This caused `yamlfmt` not to
work under that circumstance. This edge case is handled now.
#### Filepath collector panic
[#​300](https://redirect.github.com/google/yamlfmt/issues/300)
In a scenario where `filepath.Walk` fails 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 that `filepath.Walk` propogates 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](https://redirect.github.com/slipknois) for
fixing the Gitlab output format.
</details>
---
### 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 becomes conflicted, or you tick the
rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box
---
This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/bazel-contrib/jq.bzl).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0Mi42OS4xIiwidXBkYXRlZEluVmVyIjoiNDIuNjkuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>1 parent 5d423b8 commit efc1ef3
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
0 commit comments