Enforce consistent and correct toml formatting (#2518)

Using taplo, fixes all our broken and inconsistent toml formatting and
adds CI to keep them tidy.

If people want we can customise the format rules as described here
https://taplo.tamasfe.dev/configuration/formatter-options.html

@ggwpez, I suggest zepter is used only for checking features are
propagated, and leave formatting for taplo to avoid duplicate work and
conflicts.

TODO
- [x] Use `exclude = [...]` syntax in taplo file to ignore zombienet
tests instead of deleting the dir

---------

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Co-authored-by: Bastian Köcher <git@kchr.de>
This commit is contained in:
Liam Aharon
2023-12-01 11:38:02 +04:00
committed by GitHub
parent 52132636d9
commit 4a293bc5a2
364 changed files with 2325 additions and 2287 deletions
+19 -19
View File
@@ -18,23 +18,23 @@ serde = { version = "1.0.193", default-features = false, features = ["alloc", "d
codec = { package = "parity-scale-codec", version = "3.6.1", default-features = false, features = ["derive", "max-encoded-len"] }
scale-info = { version = "2.10.0", default-features = false, features = ["derive"] }
frame-metadata = { version = "16.0.0", default-features = false, features = ["current"] }
sp-api = { path = "../../primitives/api", default-features = false, features = [ "frame-metadata" ] }
sp-std = { path = "../../primitives/std", default-features = false}
sp-io = { path = "../../primitives/io", default-features = false}
sp-runtime = { path = "../../primitives/runtime", default-features = false}
sp-tracing = { path = "../../primitives/tracing", default-features = false}
sp-core = { path = "../../primitives/core", default-features = false}
sp-arithmetic = { path = "../../primitives/arithmetic", default-features = false}
sp-inherents = { path = "../../primitives/inherents", default-features = false}
sp-staking = { path = "../../primitives/staking", default-features = false}
sp-weights = { path = "../../primitives/weights", default-features = false}
sp-debug-derive = { path = "../../primitives/debug-derive", default-features = false}
sp-metadata-ir = { path = "../../primitives/metadata-ir", default-features = false}
sp-api = { path = "../../primitives/api", default-features = false, features = ["frame-metadata"] }
sp-std = { path = "../../primitives/std", default-features = false }
sp-io = { path = "../../primitives/io", default-features = false }
sp-runtime = { path = "../../primitives/runtime", default-features = false }
sp-tracing = { path = "../../primitives/tracing", default-features = false }
sp-core = { path = "../../primitives/core", default-features = false }
sp-arithmetic = { path = "../../primitives/arithmetic", default-features = false }
sp-inherents = { path = "../../primitives/inherents", default-features = false }
sp-staking = { path = "../../primitives/staking", default-features = false }
sp-weights = { path = "../../primitives/weights", default-features = false }
sp-debug-derive = { path = "../../primitives/debug-derive", default-features = false }
sp-metadata-ir = { path = "../../primitives/metadata-ir", default-features = false }
tt-call = "1.0.8"
macro_magic = "0.5.0"
frame-support-procedural = { path = "procedural", default-features = false}
frame-support-procedural = { path = "procedural", default-features = false }
paste = "1.0"
sp-state-machine = { path = "../../primitives/state-machine", default-features = false, optional = true}
sp-state-machine = { path = "../../primitives/state-machine", default-features = false, optional = true }
bitflags = "1.3"
impl-trait-for-tuples = "0.2.2"
smallvec = "1.11.0"
@@ -42,7 +42,7 @@ log = { version = "0.4.17", default-features = false }
sp-core-hashing-proc-macro = { path = "../../primitives/core/hashing/proc-macro" }
k256 = { version = "0.13.1", default-features = false, features = ["ecdsa"] }
environmental = { version = "1.1.4", default-features = false }
sp-genesis-builder = { path = "../../primitives/genesis-builder", default-features=false}
sp-genesis-builder = { path = "../../primitives/genesis-builder", default-features = false }
serde_json = { version = "1.0.108", default-features = false, features = ["alloc"] }
docify = "0.2.6"
static_assertions = "1.1.0"
@@ -55,7 +55,7 @@ pretty_assertions = "1.2.1"
frame-system = { path = "../system" }
[features]
default = [ "std" ]
default = ["std"]
std = [
"codec/std",
"environmental/std",
@@ -101,8 +101,8 @@ no-metadata-docs = [
]
# By default some types have documentation, `full-metadata-docs` allows to add documentation to
# more types in the metadata.
full-metadata-docs = [ "scale-info/docs" ]
full-metadata-docs = ["scale-info/docs"]
# Generate impl-trait for tuples with the given number of tuples. Will be needed as the number of
# pallets in a runtime grows. Does increase the compile time!
tuples-96 = [ "frame-support-procedural/tuples-96" ]
tuples-128 = [ "frame-support-procedural/tuples-128" ]
tuples-96 = ["frame-support-procedural/tuples-96"]
tuples-128 = ["frame-support-procedural/tuples-128"]