Yamllint is a linter for YAML files.
yamllint does not only check for syntax validity, but for weirdnesses like key repetition and cosmetic problems such as lines length, trailing spaces or indentation.
You can use it both with:
The Vim through the ALE plugin.
- repo: https://github.com/adrienverge/yamllint rev: v1.21.0 hooks: - id: yamllint