# yamllint

> A linter for YAML files

Source: https://talira.ai/catalog/yamllint-q031qz6h
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Command-line tool
- Categories: [developer tools / linting](https://talira.ai/categories/developer-tools/linting)
- Licence: GPL-3.0-or-later[^3]
- Pricing: Free and open source[^3]
- Free tier: yes[^3]
- Backed by: [Adrien Vergé](https://talira.ai/orgs/adrienverge.md)

yamllint is Adrien Vergé's linter for YAML files, written in Python: beyond checking that a file parses, it catches oddities such as repeated keys and cosmetic problems such as long lines, trailing spaces and inconsistent indentation. It lints files or whole directories, comes with default and relaxed presets or your own configuration file, and has a parsable output format for editors such as Vim and Emacs. It installs with pip or from the major operating systems' packages.

## Links

- GitHub: https://github.com/adrienverge/yamllint
- Docs: https://yamllint.readthedocs.io/

## Ways to install

### Package managers

- [Homebrew](https://talira.ai/catalog/homebrew-djy17yn9.md): <https://formulae.brew.sh/formula/yamllint>[^1]
- [APT](https://talira.ai/catalog/apt-d7essv0z.md): <https://packages.debian.org/stable/yamllint>[^2]

## Problems it solves

- catch duplicate keys and indentation mistakes in my YAML files in CI
- lint Kubernetes or Ansible YAML before committing
- enforce a consistent YAML style across a repository

## Features

- checks YAML syntax, repeated keys and cosmetic problems
- line length, trailing space and indentation rules
- default and relaxed presets or custom configuration
- parsable output for editors

## Trust

Overall: 0.47 out of 1.
Signals: maintenance 0.46, adoption 0.71, momentum 0.44, community 0.81, backing 0.30, extensibility 0.00.

- last commit 2 months ago
- 1 commits in the last 90 days
- latest release v1.38.0 10 months ago
- 3.5k GitHub stars
- 103 contributors
- 6k Homebrew installs in 30 days
- backed by Adrien Vergé

## Alternatives

- [ansible-lint](https://talira.ai/catalog/ansible-lint-r3bpcyc4.md): Checks playbooks for practices and behavior that could potentially be improved
- [Vale](https://talira.ai/catalog/vale-q6w53axq.md): A markup-aware linter for prose
- [KubeLinter](https://talira.ai/catalog/kubelinter-ajb5n3q6.md): Static analysis for Kubernetes YAML files and Helm charts
- [actionlint](https://talira.ai/catalog/actionlint-jtcdzp1v.md): Static checker for GitHub Actions workflow files
- [RuboCop RSpec](https://talira.ai/catalog/rubocop-rspec-qqbxpw4a.md): RuboCop extension with cops for RSpec test files
- [SwiftLint](https://talira.ai/catalog/swiftlint-9xkk742n.md): Linter that enforces Swift style and conventions, with auto-fix

## Sources

[^1]: https://formulae.brew.sh/api/formula.json (checked 29 Nov 2026)
[^2]: https://deb.debian.org/debian/dists/stable/main/source/Sources.xz (checked 29 Nov 2026)
[^3]: https://github.com/adrienverge/yamllint/blob/master/yamllint/linter.py (checked 29 Nov 2026)
