1
Fork 0
kantodb/taplo.toml

40 lines
1.1 KiB
TOML

[formatting]
align_comments = false
[[rule]]
include = ["**/Cargo.toml"]
keys = [
"dependencies",
"workspace.dependencies",
"build-dependencies",
"dev-dependencies",
"workspace.lints.clippy",
"workspace.lints.rust",
]
formatting = { reorder_keys = true }
[[rule]]
include = ["rust-toolchain.toml", "rust-toolchain-*.toml"]
# TODO taplo sort is buggy <https://github.com/tamasfe/taplo/issues/608> #waiting #ecosystem/taplo
#keys = ["toolchain.components", "toolchain.targets"]
keys = ["toolchain"]
formatting = { reorder_arrays = true }
[[rule]]
include = ["deny.toml"]
# TODO taplo sort is buggy <https://github.com/tamasfe/taplo/issues/608> #waiting #ecosystem/taplo
#keys = ["graph.targets", "licenses.allow", "licenses.exceptions.allow"]
keys = ["graph", "licenses"]
formatting = { reorder_arrays = true }
[[rule]]
include = ["deny.toml"]
keys = ["bans"]
formatting = { reorder_keys = true }
[[rule]]
include = ["deny.toml"]
# TODO taplo sort is buggy <https://github.com/tamasfe/taplo/issues/608> #waiting #ecosystem/taplo
#keys = ["sources.allow-git", "sources.allow-registry"]
keys = ["sources"]
formatting = { reorder_arrays = true }