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.5.18
hooks:
- id: tombi-format
Optionally, you can also install the tombi linter as a pre-commit hook:
repos:
- repo: https://github.com/tombi-toml/tombi-pre-commit
rev: v0.5.18
hooks:
- id: tombi-format
- id: tombi-lint
For both hooks, the --offline
flag can be added to avoid network calls.
repos:
- repo: https://github.com/tombi-toml/tombi-pre-commit
rev: v0.5.18
hooks:
- id: tombi-format
args: ["--offline"]
- id: tombi-lint
args: ["--offline"]