Skip to content

A pre-commit hook for Taplo, a TOML formatter written in Rust

Notifications You must be signed in to change notification settings

ComPWA/taplo-pre-commit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Pre-commit hook for the Taplo TOML formatter

Mirror of github.com/tamasfe/taplo and the taplo PyPI package for pre-commit.

Using Taplo with pre-commit

Add this to your .pre-commit-config.yaml

repos:
  - repo: https://github.com/ComPWA/taplo-pre-commit
    rev: v0.9.3
    hooks:
      - id: taplo-format

To get the latest release, run

pre-commit autoupdate --repo https://github.com/ComPWA/taplo-pre-commit

Optionally, you can also install the Taplo linter as a pre-commit hook:

repos:
  - repo: https://github.com/ComPWA/taplo-pre-commit
    rev: v0.9.3
    hooks:
      - id: taplo-format
      - id: taplo-lint