Skip to content

Commit 6bd2e0b

Browse files
test(ci): enforce TOML formatting with taplo 0.9.3
1 parent d22aa2e commit 6bd2e0b

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

.github/pull_request_template.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ person(s) who reviewed your changes. This will make sure it gets re-added to the
1717
**Checklist**
1818

1919
- [ ] Run `cargo fmt`.
20+
- [ ] Run `taplo format`.
2021
- [ ] Run `cargo clippy`. If applicable, add:
2122
- [ ] `--target wasm32-unknown-unknown`
2223
- [ ] `--target wasm32-unknown-emscripten`

.github/workflows/ci.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -620,6 +620,14 @@ jobs:
620620
cargo fmt --manifest-path xtask/Cargo.toml -- --check
621621
cargo fmt --manifest-path naga/xtask/Cargo.toml -- --check
622622
623+
- name: Install Taplo
624+
uses: uncenter/setup-taplo@v1
625+
with:
626+
version: "0.9.3"
627+
628+
- name: run `taplo fmt`
629+
run: taplo format --check --diff
630+
623631
- name: Check for typos
624632
uses: crate-ci/[email protected]
625633

taplo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[formatting]
2+
indent_string = " "

0 commit comments

Comments
 (0)