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"]
@@ -21,7 +21,7 @@ sp-state-machine = { path = "../../../../primitives/state-machine" }
sp-trie = { path = "../../../../primitives/trie" }
trie-db = "0.28.0"
jsonrpsee = { version = "0.16.2", features = ["client-core", "server", "macros"] }
jsonrpsee = { version = "0.16.2", features = ["client-core", "macros", "server"] }
# Substrate Dependencies
sc-client-api = { path = "../../../../client/api" }
+1 -1
View File
@@ -21,7 +21,7 @@ sp-storage = { path = "../../../../primitives/storage" }
[dev-dependencies]
scale-info = "2.10.0"
jsonrpsee = { version = "0.16.2", features = ["ws-client", "jsonrpsee-types"] }
jsonrpsee = { version = "0.16.2", features = ["jsonrpsee-types", "ws-client"] }
tokio = "1.22.0"
sp-core = { path = "../../../../primitives/core" }
sp-runtime = { path = "../../../../primitives/runtime" }
+1 -1
View File
@@ -14,7 +14,7 @@ targets = ["x86_64-unknown-linux-gnu"]
[dependencies]
codec = { package = "parity-scale-codec", version = "3.6.1" }
jsonrpsee = { version = "0.16.2", features = ["client-core", "server", "macros"] }
jsonrpsee = { version = "0.16.2", features = ["client-core", "macros", "server"] }
futures = "0.3.21"
log = "0.4.17"
frame-system-rpc-runtime-api = { path = "../../../../frame/system/rpc/runtime-api" }
@@ -12,7 +12,7 @@ description = "Cli command runtime testing and dry-running"
targets = ["x86_64-unknown-linux-gnu"]
[dependencies]
remote-externalities = { package = "frame-remote-externalities" , path = "../../remote-externalities" }
remote-externalities = { package = "frame-remote-externalities", path = "../../remote-externalities" }
sc-cli = { path = "../../../../client/cli" }
sc-executor = { path = "../../../../client/executor" }
sp-consensus-aura = { path = "../../../../primitives/consensus/aura" }
@@ -31,7 +31,7 @@ sp-version = { path = "../../../../primitives/version" }
sp-debug-derive = { path = "../../../../primitives/debug-derive" }
sp-api = { path = "../../../../primitives/api" }
sp-weights = { path = "../../../../primitives/weights" }
frame-try-runtime = { path = "../../../../frame/try-runtime", optional = true}
frame-try-runtime = { path = "../../../../frame/try-runtime", optional = true }
substrate-rpc-client = { path = "../../rpc/client" }
async-trait = "0.1.57"