Skip to content

Commit

Permalink
Add Taplo formatting for TOML files (#809)
Browse files Browse the repository at this point in the history
  • Loading branch information
DJMcNab authored Feb 3, 2025
1 parent f0b040d commit 7affdd8
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,14 @@ jobs:
- name: cargo fmt
run: cargo fmt --all --check

- name: Install Taplo
uses: uncenter/setup-taplo@09968a8ae38d66ddd3d23802c44bf6122d7aa991 # v1
with:
version: "0.9.3"

- name: Run taplo fmt
run: taplo fmt --check --diff

- name: install ripgrep
run: |
sudo apt update
Expand Down
11 changes: 11 additions & 0 deletions .taplo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# See https://taplo.tamasfe.dev/configuration/file.html
# and https://taplo.tamasfe.dev/configuration/formatter-options.html

[formatting]
# Aligning comments with the largest line creates
# diff noise when neighboring lines are changed.
align_comments = false

# Matches how rustfmt formats Rust code
column_width = 100
indent_string = " "

0 comments on commit 7affdd8

Please sign in to comment.