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
@@ -34,11 +34,11 @@ frame-benchmarking = { path = "../../../frame/benchmarking" }
frame-support = { path = "../../../frame/support" }
frame-system = { path = "../../../frame/system" }
sc-block-builder = { path = "../../../client/block-builder" }
sc-cli = { path = "../../../client/cli", default-features = false}
sc-cli = { path = "../../../client/cli", default-features = false }
sc-client-api = { path = "../../../client/api" }
sc-client-db = { path = "../../../client/db", default-features = false}
sc-client-db = { path = "../../../client/db", default-features = false }
sc-executor = { path = "../../../client/executor" }
sc-service = { path = "../../../client/service", default-features = false}
sc-service = { path = "../../../client/service", default-features = false }
sc-sysinfo = { path = "../../../client/sysinfo" }
sp-api = { path = "../../../primitives/api" }
sp-blockchain = { path = "../../../primitives/blockchain" }
@@ -56,7 +56,7 @@ sp-wasm-interface = { path = "../../../primitives/wasm-interface" }
gethostname = "0.2.3"
[features]
default = [ "rocksdb" ]
default = ["rocksdb"]
runtime-benchmarks = [
"frame-benchmarking/runtime-benchmarks",
"frame-support/runtime-benchmarks",
@@ -65,4 +65,4 @@ runtime-benchmarks = [
"sc-service/runtime-benchmarks",
"sp-runtime/runtime-benchmarks",
]
rocksdb = [ "sc-cli/rocksdb", "sc-client-db/rocksdb" ]
rocksdb = ["sc-cli/rocksdb", "sc-client-db/rocksdb"]