A pre-commit hook for tombi.
Distributed as a standalone repository to enable installing tombi via prebuilt wheels from PyPI.
Add the following to your .pre-commit-config.yaml:
repos:
- repo: https://github.com/tombi-toml/tombi-pre-commit
  rev: v0.6.40
  hooks:
    - id: tombi-formatOptionally, you can also install the tombi linter as a pre-commit hook:
repos:
- repo: https://github.com/tombi-toml/tombi-pre-commit
  rev: v0.6.40
  hooks:
    - id: tombi-format
    - id: tombi-lintFor both hooks, the --offline flag can be added to avoid network calls.
repos:
- repo: https://github.com/tombi-toml/tombi-pre-commit
  rev: v0.6.40
  hooks:
    - id: tombi-format
      args: ["--offline"]
    - id: tombi-lint
      args: ["--offline"]