Skip to content

Commit 0386d29

Browse files
committed
Add taplo pre-commit hook to format and sort toml files
1 parent ed8a7d4 commit 0386d29

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.pre-commit-config.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,12 @@ repos:
7373
rev: 2024.08.19
7474
hooks:
7575
- id: sp-repo-review
76+
- repo: https://github.com/ComPWA/taplo-pre-commit
77+
rev: v0.9.3
78+
hooks:
79+
- id: taplo-format
80+
# See options: https://taplo.tamasfe.dev/configuration/formatter-options.html
81+
args: [--option, "reorder_arrays=true"]
7682
- repo: https://github.com/pre-commit/pre-commit-hooks
7783
rev: v5.0.0
7884
hooks:
@@ -90,7 +96,3 @@ repos:
9096
args: [--branch, main]
9197
- id: requirements-txt-fixer
9298
- id: trailing-whitespace
93-
- repo: https://github.com/pappasam/toml-sort
94-
rev: v0.23.1
95-
hooks:
96-
- id: toml-sort-fix

0 commit comments

Comments
 (0)