Skip to content

Commit

Permalink
check toml fmt (#87)
Browse files Browse the repository at this point in the history
* enforce toml formatting
  • Loading branch information
asmello authored Oct 20, 2024
1 parent 6630744 commit c6ceb4b
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 20 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,3 +125,14 @@ jobs:
toolchain: ${{ matrix.msrv }}
- name: cargo +${{ matrix.msrv }} check
run: cargo check
toml-fmt:
runs-on: ubuntu-latest
name: toml / fmt
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Install taplo
uses: docker://docker.io/tamasfe/taplo:latest
with:
args: fmt --check --diff
40 changes: 20 additions & 20 deletions .taplo.toml
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
include = ["**/*.toml", "**/Cargo.toml", "Cargo.toml"]
[formatting]
align_comments = true
align_entries = true
allowed_blank_lines = 1
indent_entries = false
reorder_arrays = false
reorder_keys = true
trailing_newline = true
align_comments = true
align_entries = true
allowed_blank_lines = 1
indent_entries = false
reorder_arrays = false
reorder_keys = true
trailing_newline = true

[[rule]]
formatting.align_entries = true
formatting.array_auto_expand = false
formatting.reorder_arrays = true
formatting.reorder_keys = true
include = ["Cargo.toml", "**/Cargo.toml"]
keys = [
"dependencies",
"dev-dependencies",
"build-dependencies",
"workspace.dependencies",
"workspace.dev-dependencies",
"workspace.build-dependencies",
]
formatting.align_entries = true
formatting.array_auto_expand = false
formatting.reorder_arrays = true
formatting.reorder_keys = true
include = ["Cargo.toml", "**/Cargo.toml"]
keys = [
"dependencies",
"dev-dependencies",
"build-dependencies",
"workspace.dependencies",
"workspace.dev-dependencies",
"workspace.build-dependencies",
]

0 comments on commit c6ceb4b

Please sign in to comment.