Skip to content

tombi-toml/tombi-pre-commit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tombi-pre-commit

A pre-commit hook for tombi.

Distributed as a standalone repository to enable installing tombi via prebuilt wheels from PyPI.

Installation

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"]

About

A pre-commit hook for Tombi.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages