-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into custom-digest-item
- Loading branch information
Showing
43 changed files
with
614 additions
and
329 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# all options https://taplo.tamasfe.dev/configuration/formatter-options.html | ||
|
||
# ignore zombienet as they do some deliberate custom toml stuff | ||
exclude = [ | ||
"_typos.toml", | ||
"contracts/**", | ||
"rust-toolchain.toml", | ||
"web/packages/test/config/launch-config.toml", | ||
"polkadot-sdk/**", | ||
".config/**", | ||
] | ||
|
||
# global rules | ||
[formatting] | ||
reorder_arrays = true | ||
inline_table_expand = false | ||
array_auto_expand = false | ||
array_auto_collapse = false | ||
indent_string = " " # tab | ||
|
||
# don't re-order order-dependent deb package metadata | ||
[[rule]] | ||
include = ["polkadot/Cargo.toml"] | ||
keys = ["package.metadata.deb"] | ||
|
||
[rule.formatting] | ||
reorder_arrays = false | ||
|
||
# don't re-order order-dependent rustflags | ||
[[rule]] | ||
include = [".cargo/config.toml"] | ||
keys = ["build"] | ||
|
||
[rule.formatting] | ||
reorder_arrays = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
version: | ||
format: 1 | ||
# Minimum version of the binary that is expected to work. This is just for printing a nice error | ||
# message when someone tries to use an older version. | ||
binary: 0.13.2 | ||
|
||
# The examples in this file assume crate `A` to have a dependency on crate `B`. | ||
workflows: | ||
check: | ||
- [ | ||
'lint', | ||
# Check that `A` activates the features of `B`. | ||
'propagate-feature', | ||
# These are the features to check: | ||
'--features=try-runtime,runtime-benchmarks,std', | ||
# Do not try to add a new section into `[features]` of `A` only because `B` expose that feature. There are edge-cases where this is still needed, but we can add them manually. | ||
'--left-side-feature-missing=ignore', | ||
# Ignore the case that `A` it outside of the workspace. Otherwise it will report errors in external dependencies that we have no influence on. | ||
'--left-side-outside-workspace=ignore', | ||
# Some features imply that they activate a specific dependency as non-optional. Otherwise the default behaviour with a `?` is used. | ||
'--feature-enables-dep=try-runtime:frame-try-runtime,runtime-benchmarks:frame-benchmarking', | ||
# Auxillary flags: | ||
'--offline', | ||
'--locked', | ||
'--show-path', | ||
'--quiet', | ||
] | ||
# Same as `check`, but with the `--fix` flag. | ||
default: | ||
- [ $check.0, '--fix' ] | ||
|
||
# Will be displayed when any workflow fails: | ||
help: | ||
text: | | ||
Polkadot-SDK uses the Zepter CLI to detect abnormalities in the feature configuration. | ||
It looks like one more more checks failed; please check the console output. You can try to automatically address them by running `zepter`. | ||
Otherwise please ask directly in the Merge Request, GitHub Discussions or on Matrix Chat, thank you. | ||
links: | ||
- "https://github.com/paritytech/polkadot-sdk/issues/1831" | ||
- "https://github.com/ggwpez/zepter" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.