Skip to content

Commit 9b749f8

Browse files
authored
Merge pull request #24 from paritytech/bko-on-dm-upgrade-polkadot-sdk
NIts on upgrade polkadot sdk
2 parents 93d1e2d + 1c83a9e commit 9b749f8

File tree

12 files changed

+337
-238
lines changed

12 files changed

+337
-238
lines changed

.config/taplo.toml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# all options https://taplo.tamasfe.dev/configuration/formatter-options.html
2+
3+
exclude = [
4+
"target/**",
5+
]
6+
7+
# global rules
8+
[formatting]
9+
reorder_arrays = true
10+
inline_table_expand = false
11+
array_auto_expand = false
12+
array_auto_collapse = false
13+
indent_string = " " # tab
14+
15+
# don't re-order order-dependent rustflags
16+
[[rule]]
17+
include = [".cargo/config.toml"]
18+
keys = ["build"]
19+
20+
[rule.formatting]
21+
reorder_arrays = false
22+
23+
[[rule]]
24+
include = ["Cargo.toml"]
25+
keys = ["workspace.dependencies"]
26+
27+
[rule.formatting]
28+
reorder_keys = true

.config/zepter.yaml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
version:
2+
format: 1
3+
# Minimum version of the binary that is expected to work. This is just for printing a nice error
4+
# message when someone tries to use an older version.
5+
binary: 0.13.2
6+
7+
# The examples in this file assume crate `A` to have a dependency on crate `B`.
8+
workflows:
9+
check:
10+
- [
11+
'lint',
12+
# Check that `A` activates the features of `B`.
13+
'propagate-feature',
14+
# These are the features to check:
15+
'--features=try-runtime,runtime-benchmarks,std',
16+
# 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.
17+
'--left-side-feature-missing=ignore',
18+
# Ignore the case that `A` it outside of the workspace. Otherwise it will report errors in external dependencies that we have no influence on.
19+
'--left-side-outside-workspace=ignore',
20+
# Some features imply that they activate a specific dependency as non-optional. Otherwise the default behaviour with a `?` is used.
21+
'--feature-enables-dep=try-runtime:frame-try-runtime,runtime-benchmarks:frame-benchmarking',
22+
# Auxillary flags:
23+
'--offline',
24+
'--locked',
25+
'--show-path',
26+
'--quiet',
27+
]
28+
# Same as `check`, but with the `--fix` flag.
29+
default:
30+
- [ $check.0, '--fix' ]
31+
32+
# Will be displayed when any workflow fails:
33+
help:
34+
text: |
35+
This repo uses the Zepter CLI to detect abnormalities in the feature configuration.
36+
It looks like one more more checks failed; please check the console output. You can try to automatically address them by running `zepter`.
37+
Otherwise please ask directly in the Merge Request, GitHub Discussions or on Matrix Chat, thank you.
38+
links:
39+
- "https://github.com/ggwpez/zepter"

0 commit comments

Comments
 (0)