Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Use same fmt and clippy configs as in Polkadot #3004

Merged
merged 5 commits into from
Aug 14, 2023

Conversation

ggwpez
Copy link
Member

@ggwpez ggwpez commented Aug 14, 2023

Same as paritytech/polkadot#7611 and part of #2970 (preparation for monorepo)

Changes:

  • Copy rustfmt.toml and Clippy config from Substrate/Polkadot master.
  • Format code with new config. All the code changes should be due to comment_width = 100 and wrap_comments = true.
  • TODO: Fix clippy warnings.

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
@paritytech-cicd-pr
Copy link

The CI pipeline was cancelled due to failure one of the required jobs.
Job name: test-linux-stable
Logs: https://gitlab.parity.io/parity/mirrors/cumulus/-/jobs/3379862

/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
/// The range of component `b` is `[1, 19]`.
/// Proof: CollatorSelection Invulnerables (max_values: Some(1), max_size: Some(641), added:
/// 1136, mode: MaxEncodedLen) Storage: CollatorSelection Candidates (r:1 w:1)
Copy link
Member Author

@ggwpez ggwpez Aug 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the only weight file where the comments are too long.

We could either add #[rustfmt::skip] to the weight template, or exclude it in the rustfmt.toml file. Former is probably better, since the file paths will change in the monorepo.

Since it is only one file, i will leave it like this after the monorepo.

Looks like paritytech/polkadot#7611 did not
correctly update the lockfile. Maybe a different Rust Version?!

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
@ggwpez ggwpez added B0-silent Changes should not be mentioned in any release notes A3-in_progress Pull request is in progress. No review needed at this stage. C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit A0-please_review Pull request needs code review. and removed A3-in_progress Pull request is in progress. No review needed at this stage. labels Aug 14, 2023
@ggwpez ggwpez marked this pull request as ready for review August 14, 2023 15:45
@paritytech-ci paritytech-ci requested review from a team August 14, 2023 15:46
@ggwpez
Copy link
Member Author

ggwpez commented Aug 14, 2023

bot merge

@paritytech-processbot paritytech-processbot bot merged commit 234b821 into master Aug 14, 2023
19 of 22 checks passed
@paritytech-processbot paritytech-processbot bot deleted the oty-fmt-and-clippy-parity branch August 14, 2023 20:30
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants