test(ci): enforce TOML formatting with taplo 0.9.3

This commit is contained in:
Erich Gubler 2024-10-04 10:57:23 -04:00
parent d22aa2eb55
commit 6bd2e0b9cb
3 changed files with 11 additions and 0 deletions

View File

@ -17,6 +17,7 @@ person(s) who reviewed your changes. This will make sure it gets re-added to the
**Checklist**
- [ ] Run `cargo fmt`.
- [ ] Run `taplo format`.
- [ ] Run `cargo clippy`. If applicable, add:
- [ ] `--target wasm32-unknown-unknown`
- [ ] `--target wasm32-unknown-emscripten`

View File

@ -620,6 +620,14 @@ jobs:
cargo fmt --manifest-path xtask/Cargo.toml -- --check
cargo fmt --manifest-path naga/xtask/Cargo.toml -- --check
- name: Install Taplo
uses: uncenter/setup-taplo@v1
with:
version: "0.9.3"
- name: run `taplo fmt`
run: taplo format --check --diff
- name: Check for typos
uses: crate-ci/typos@v1.24.6

2
taplo.toml Normal file
View File

@ -0,0 +1,2 @@
[formatting]
indent_string = " "