Skip to content

Commit b41b748

Browse files
1 parent d20c5e0 commit b41b748

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,14 @@ jobs:
7777
- name: cargo fmt
7878
run: cargo fmt --all --check
7979

80+
- name: Install Taplo
81+
uses: uncenter/setup-taplo@09968a8ae38d66ddd3d23802c44bf6122d7aa991 # v1
82+
with:
83+
version: "0.9.3"
84+
85+
- name: Run taplo fmt
86+
run: taplo fmt --check --diff
87+
8088
- name: install ripgrep
8189
run: |
8290
sudo apt update

.taplo.toml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# See https://taplo.tamasfe.dev/configuration/file.html
2+
# and https://taplo.tamasfe.dev/configuration/formatter-options.html
3+
4+
[formatting]
5+
# Aligning comments with the largest line creates
6+
# diff noise when neighboring lines are changed.
7+
align_comments = false
8+
9+
# Matches how rustfmt formats Rust code
10+
column_width = 100
11+
indent_string = " "

0 commit comments

Comments
 (0)