Use yamkix as a pre-commit hook¶
This guide shows how to run yamkix automatically on your YAML files with the pre-commit framework.
-
Since
v0.12.0, you can useyamkixas a pre-commit hook: -
you can pass options to
yamkixthrough theargskey: -
you can control which files will be parsed with the
excludekey: -
the hook runs with
--silentby default, so nothing tells you which files were reformatted; add--list-modifiedto print one line per modified file:
Note
args and exclude are related to the pre-commit framework, not to yamkix.