Skip to content

Commit

Permalink
Add taplo pre-commit hook to format and sort toml files (#6781)
Browse files Browse the repository at this point in the history
* Add toml-sort pre-commit hook

* Update config

* Update config

* Update comments

* Use taplo

* Update pyproject.toml

Co-authored-by: user27182 <[email protected]>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Make comment inline

---------

Co-authored-by: Tetsuo Koyama <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Nov 12, 2024
1 parent 654782a commit 30e4ee2
Show file tree
Hide file tree
Showing 2 changed files with 251 additions and 276 deletions.
7 changes: 7 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,10 @@ repos:
rev: v3.10.0-1
hooks:
- id: shfmt

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

0 comments on commit 30e4ee2

Please sign in to comment.