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
+2 -2
View File
@@ -25,7 +25,7 @@ fnv = "1.0.6"
futures = "0.3.21"
futures-timer = "3.0.2"
ip_network = "0.4.1"
libp2p = { version = "0.51.3", features = ["dns", "identify", "kad", "macros", "mdns", "noise", "ping", "tcp", "tokio", "yamux", "websocket", "request-response"] }
libp2p = { version = "0.51.3", features = ["dns", "identify", "kad", "macros", "mdns", "noise", "ping", "request-response", "tcp", "tokio", "websocket", "yamux"] }
linked_hash_set = "0.1.3"
log = "0.4.17"
mockall = "0.11.3"
@@ -39,7 +39,7 @@ smallvec = "1.11.0"
thiserror = "1.0"
tokio = { version = "1.22.0", features = ["macros", "sync"] }
tokio-stream = "0.1.7"
unsigned-varint = { version = "0.7.1", features = ["futures", "asynchronous_codec"] }
unsigned-varint = { version = "0.7.1", features = ["asynchronous_codec", "futures"] }
zeroize = "1.4.3"
prometheus-endpoint = { package = "substrate-prometheus-endpoint", path = "../../utils/prometheus" }
sc-client-api = { path = "../api" }
+1 -1
View File
@@ -23,7 +23,7 @@ libp2p-identity = { version = "0.1.3", features = ["peerid"] }
log = "0.4.17"
prost = "0.11"
thiserror = "1.0"
unsigned-varint = { version = "0.7.1", features = ["futures", "asynchronous_codec"] }
unsigned-varint = { version = "0.7.1", features = ["asynchronous_codec", "futures"] }
sc-client-api = { path = "../../api" }
sc-network = { path = ".." }
sp-blockchain = { path = "../../../primitives/blockchain" }
+1 -1
View File
@@ -19,7 +19,7 @@ prost-build = "0.11"
async-channel = "1.8.0"
array-bytes = "6.1"
codec = { package = "parity-scale-codec", version = "3.6.1", features = [
"derive",
"derive",
] }
futures = "0.3.21"
libp2p-identity = { version = "0.1.3", features = ["peerid"] }
+1 -1
View File
@@ -30,7 +30,7 @@ schnellru = "0.2.1"
smallvec = "1.11.0"
thiserror = "1.0"
tokio-stream = "0.1.14"
tokio = { version = "1.32.0", features = ["time", "macros"] }
tokio = { version = "1.32.0", features = ["macros", "time"] }
fork-tree = { path = "../../../utils/fork-tree" }
prometheus-endpoint = { package = "substrate-prometheus-endpoint", path = "../../../utils/prometheus" }
sc-client-api = { path = "../../api" }
+1 -1
View File
@@ -29,7 +29,7 @@ sc-network-common = { path = "../common" }
sc-utils = { path = "../../utils" }
sc-network-light = { path = "../light" }
sc-network-sync = { path = "../sync" }
sc-service = { path = "../../service", default-features = false, features = ["test-helpers"]}
sc-service = { path = "../../service", default-features = false, features = ["test-helpers"] }
sp-blockchain = { path = "../../../primitives/blockchain" }
sp-consensus = { path = "../../../primitives/consensus/common" }
sp-core = { path = "../../../primitives/core" }