Tombi
Tombi lints and formats TOML. Use it after editing configuration files such as mise.toml, zensical.toml, or a derived project's pyproject.toml. Its schema support can also flag invalid configuration keys where a schema is available.
Configuration in this template
tombi.toml defines a two-space indent, spaces for indentation, and LF line endings. Prek runs both tombi-format and tombi-lint. The hook suite also has a general TOML syntax check.
Check and format a TOML file
Run these examples from the repository root. Replace mise.toml with the file you edited.
tombi lint mise.toml
tombi format --check mise.toml
Run tombi format mise.toml to apply formatting and review the result in Git. Change [format.rules] in tombi.toml to set a different formatting policy. Use Tombi's schema settings if a custom TOML file needs validation tailored to your project. Tombi configuration