TGViewer
CatOps CatOps @catops · 5.07K subscribers
Post #2176 2.34K
Love `yq` or hate unordered lists in YAML?

Try the pre-commit-yq hook that provides both possibilities!

Yeah, it is mainly used as yet another YAML prettier, but with the support of comments and blank lines inside (at least, it doesn't remove most of them)

yq itself able works with YAML, XML, and TOML, and build on top of jq.

So, in case you can in yq/jq syntax and still have not found normal prettier for these file types - here it is.

Also, pre-commit can be simply run in your CI, here are examples for Github Action: usual usage, usage with dirty hack
GitHub GitHub - SpotOnInc/pre-commit-yq: Make able to apply `yq` as pre-commit.com hook. YAML prettier. Make able to apply `yq` as pre-commit.com hook. YAML prettier. - SpotOnInc/pre-commit-yq
  • ❤ 1
  • 👍 1
More from @catops
  1. Oct 8, 2026I’m going on a vacation, which means that I likely won’t post at all or post something ver…
  2. Oct 6, 2026A colleague of mine wrote an article about data migrations. Handling data migrations witho…
  3. Oct 1, 2026​​I traded my personal information for this report, so you don’t have to! DataDog presents…
  4. Sep 29, 2026A Cybersecurity books bundle by O’Reilly on Humble Bundle. The bundle is fresh and is stil…
  5. Sep 28, 2026​​For today’s Donations Monday, I’d like to remind you about a fundraiser for a pickup tru…
  6. Sep 26, 2026Here’s Datadog’s take on the increased load on CI. In this article they explain how their…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →