Skip to content

Commit

Permalink
Add taplo pre-commit hook to format and sort toml files
Browse files Browse the repository at this point in the history
  • Loading branch information
tkoyama010 authored Nov 19, 2024
1 parent 46147e2 commit d8410b1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,3 +78,10 @@ repos:
- id: requirements-txt-fixer
- id: trailing-whitespace
exclude: ^(|pyvista/examples/.*\.ply|pyvista/examples/.*\.vtk)

- repo: https://github.com/ComPWA/taplo-pre-commit
rev: v0.9.3
hooks:
- id: taplo-format
# See options: https://taplo.tamasfe.dev/configuration/formatter-options.html
args: [--option, "reorder_arrays=true", --option, "reorder_keys=true"]

0 comments on commit d8410b1

Please sign in to comment.