mirror of
https://gitlab.com/pezkuwichain/pezkuwi-sdk.git
synced 2026-10-20 18:56:23 +00:00
taplo.toml and deny.toml were using 2-space indent; taplo requires tabs. check-workspace.py now skips .cargo the same way it skips target/ — prevents 1000+ registry crates from being flagged as missing from workspace when GitLab cache restores .cargo into the project directory.
50 lines
1008 B
TOML
50 lines
1008 B
TOML
# all options https://taplo.tamasfe.dev/configuration/formatter-options.html
|
|
|
|
# ignore zombienet as they do some deliberate custom toml stuff
|
|
exclude = [
|
|
"**/integrationtests/**",
|
|
"**/testing/**",
|
|
"**/zombienet/**",
|
|
"**/zombienet_tests/**",
|
|
".cargo/**",
|
|
"target/**",
|
|
]
|
|
|
|
# global rules
|
|
[formatting]
|
|
reorder_arrays = true
|
|
inline_table_expand = false
|
|
array_auto_expand = true
|
|
array_auto_collapse = false
|
|
indent_string = " " # tab
|
|
|
|
# don't re-order order-dependent deb package metadata
|
|
[[rule]]
|
|
include = ["pezkuwi/Cargo.toml"]
|
|
keys = ["package.metadata.deb"]
|
|
|
|
[rule.formatting]
|
|
reorder_arrays = false
|
|
|
|
# don't re-order order-dependent rustflags
|
|
[[rule]]
|
|
include = [".cargo/config.toml"]
|
|
keys = ["build"]
|
|
|
|
[rule.formatting]
|
|
reorder_arrays = false
|
|
|
|
[[rule]]
|
|
include = ["Cargo.toml"]
|
|
keys = ["workspace.dependencies"]
|
|
|
|
[rule.formatting]
|
|
reorder_keys = true
|
|
|
|
[[rule]]
|
|
include = ["**/Cargo.toml"]
|
|
keys = ["build-dependencies", "dependencies", "dev-dependencies"]
|
|
|
|
[rule.formatting]
|
|
reorder_keys = true
|