Install
pip
Docker
No Python required:
Homebrew (macOS)
pre-commit
Add to your .pre-commit-config.yaml:
amlint will run automatically on every git commit for any file matching alertmanager*.yml.
Shell completions
pip install "amlint[completions]"
# bash
echo 'eval "$(register-python-argcomplete amlint)"' >> ~/.bashrc
# zsh
echo 'eval "$(register-python-argcomplete amlint)"' >> ~/.zshrc
Requirements
- Python 3.9+
- pyyaml (installed automatically)