mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-14 05:11:09 +00:00
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:
@@ -17,12 +17,12 @@ cfg-if = "1.0"
|
||||
codec = { package = "parity-scale-codec", version = "3.6.1", default-features = false, features = ["derive"] }
|
||||
log = { version = "0.4.17", default-features = false }
|
||||
scale-info = { version = "2.10.0", default-features = false, features = ["derive", "serde"] }
|
||||
serde = { version = "1.0.193", default-features = false, features = ["derive", "alloc"] }
|
||||
frame-support = { path = "../support", default-features = false}
|
||||
serde = { version = "1.0.193", default-features = false, features = ["alloc", "derive"] }
|
||||
frame-support = { path = "../support", default-features = false }
|
||||
sp-core = { path = "../../primitives/core", default-features = false, features = ["serde"] }
|
||||
sp-io = { path = "../../primitives/io", default-features = false}
|
||||
sp-io = { path = "../../primitives/io", default-features = false }
|
||||
sp-runtime = { path = "../../primitives/runtime", default-features = false, features = ["serde"] }
|
||||
sp-std = { path = "../../primitives/std", default-features = false}
|
||||
sp-std = { path = "../../primitives/std", default-features = false }
|
||||
sp-version = { path = "../../primitives/version", default-features = false, features = ["serde"] }
|
||||
sp-weights = { path = "../../primitives/weights", default-features = false, features = ["serde"] }
|
||||
docify = "0.2.6"
|
||||
@@ -33,7 +33,7 @@ sp-externalities = { path = "../../primitives/externalities" }
|
||||
substrate-test-runtime-client = { path = "../../test-utils/runtime/client" }
|
||||
|
||||
[features]
|
||||
default = [ "std" ]
|
||||
default = ["std"]
|
||||
std = [
|
||||
"codec/std",
|
||||
"frame-support/std",
|
||||
@@ -52,7 +52,7 @@ runtime-benchmarks = [
|
||||
"frame-support/runtime-benchmarks",
|
||||
"sp-runtime/runtime-benchmarks",
|
||||
]
|
||||
try-runtime = [ "frame-support/try-runtime", "sp-runtime/try-runtime" ]
|
||||
try-runtime = ["frame-support/try-runtime", "sp-runtime/try-runtime"]
|
||||
experimental = []
|
||||
|
||||
[[bench]]
|
||||
|
||||
@@ -15,12 +15,12 @@ targets = ["x86_64-unknown-linux-gnu"]
|
||||
[dependencies]
|
||||
codec = { package = "parity-scale-codec", version = "3.6.1", default-features = false }
|
||||
scale-info = { version = "2.10.0", default-features = false, features = ["derive"] }
|
||||
frame-benchmarking = { path = "../../benchmarking", default-features = false}
|
||||
frame-support = { path = "../../support", default-features = false}
|
||||
frame-system = { path = "..", default-features = false}
|
||||
sp-core = { path = "../../../primitives/core", default-features = false}
|
||||
sp-runtime = { path = "../../../primitives/runtime", default-features = false}
|
||||
sp-std = { path = "../../../primitives/std", default-features = false}
|
||||
frame-benchmarking = { path = "../../benchmarking", default-features = false }
|
||||
frame-support = { path = "../../support", default-features = false }
|
||||
frame-system = { path = "..", default-features = false }
|
||||
sp-core = { path = "../../../primitives/core", default-features = false }
|
||||
sp-runtime = { path = "../../../primitives/runtime", default-features = false }
|
||||
sp-std = { path = "../../../primitives/std", default-features = false }
|
||||
|
||||
[dev-dependencies]
|
||||
sp-io = { path = "../../../primitives/io" }
|
||||
@@ -28,7 +28,7 @@ sp-externalities = { path = "../../../primitives/externalities" }
|
||||
sp-version = { path = "../../../primitives/version" }
|
||||
|
||||
[features]
|
||||
default = [ "std" ]
|
||||
default = ["std"]
|
||||
std = [
|
||||
"codec/std",
|
||||
"frame-benchmarking/std",
|
||||
|
||||
@@ -14,8 +14,8 @@ targets = ["x86_64-unknown-linux-gnu"]
|
||||
|
||||
[dependencies]
|
||||
codec = { package = "parity-scale-codec", version = "3.6.1", default-features = false }
|
||||
sp-api = { path = "../../../../primitives/api", default-features = false}
|
||||
sp-api = { path = "../../../../primitives/api", default-features = false }
|
||||
|
||||
[features]
|
||||
default = [ "std" ]
|
||||
std = [ "codec/std", "sp-api/std" ]
|
||||
default = ["std"]
|
||||
std = ["codec/std", "sp-api/std"]
|
||||
|
||||
Reference in New Issue
Block a user