Download Latest Version yamlfmt_0.21.0_Linux_i386.tar.gz (1.8 MB)
Email in envelope

Get an email when there's a new version of yamlfmt

Home / v0.18.0
Name Modified Size InfoDownloads / Week
Parent folder
checksums.txt 2025-10-14 809 Bytes
checksums.txt.pem 2025-10-14 3.2 kB
checksums.txt.sig 2025-10-14 96 Bytes
yamlfmt_0.18.0_Darwin_arm64.tar.gz 2025-10-14 1.7 MB
yamlfmt_0.18.0_Darwin_x86_64.tar.gz 2025-10-14 1.8 MB
yamlfmt_0.18.0_Linux_arm64.tar.gz 2025-10-14 1.6 MB
yamlfmt_0.18.0_Linux_i386.tar.gz 2025-10-14 1.7 MB
yamlfmt_0.18.0_Linux_x86_64.tar.gz 2025-10-14 1.8 MB
yamlfmt_0.18.0_Windows_arm64.tar.gz 2025-10-14 1.7 MB
yamlfmt_0.18.0_Windows_i386.tar.gz 2025-10-14 1.8 MB
yamlfmt_0.18.0_Windows_x86_64.tar.gz 2025-10-14 1.9 MB
README.md 2025-10-14 1.0 kB
v0.18.0 source code.tar.gz 2025-10-14 153.9 kB
v0.18.0 source code.zip 2025-10-14 267.6 kB
Totals: 14 Items   14.4 MB 3

The primary reason for this release is a change to the pre-commit hook that might be breaking to some users.

Features

pre-commit hook no longer specifies filetypes

The expectation for yamlfmt is to be run in a working directory of many different filetypes, and to configure what you as a user want the tool to run on based on configuration (file extensions, doublestar patterns, etc). The hook no longer specifies types: [yaml] like it used to. You can restore this behaviour by overriding it in your pre-commit config like so:

:::yaml

- repo: https://github.com/google/yamlfmt
  rev: v0.18.0
  hooks:
    - id: yamlfmt
      types: [yaml]

However, you will likely have a better experience by reconfiguring yamlfmt to match the intended experience.

Default usage message on misuse of command

If you use the command yamlfmt with no arguments, and no config is discovered, the tool will now output a default usage message to indicate to the user how to properly use the command.

Source: README.md, updated 2025-10-14