-
Notifications
You must be signed in to change notification settings - Fork 699
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enforce consistent and correct toml formatting #2518
Merged
Merged
Changes from 26 commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
f4f3e15
consistent toml formatting
liamaharon 69368f4
add missed toml
liamaharon 743a8aa
better ignore
liamaharon 069e62a
fix comment
liamaharon 65ef868
Make Zepter not format the features
ggwpez 18de10c
indent with tab
liamaharon 7b93ca7
Merge branch 'master' into liam-format-toml
liamaharon 662f56e
format
liamaharon 8374302
update contributing.md
liamaharon 8c64eb9
remove trailing spaces
liamaharon 71354ad
ignore zombienet .toml files
liamaharon 305ef27
Merge branch 'master' into liam-format-toml
liamaharon 3cb80ec
remove kusama asset hub
liamaharon 9f4509a
remove polkadot asset hub
liamaharon 1f00942
fix merge
liamaharon 2e89d11
fixes
liamaharon e85810c
fixes
liamaharon 42376dc
fixes
liamaharon cf310e3
Merge branch 'master' into liam-format-toml
liamaharon 0af3d31
Update .gitlab/pipeline/check.yml
liamaharon 0e740fd
Merge branch 'master' into liam-format-toml
liamaharon 8d4fba7
Merge branch 'master' into liam-format-toml
liamaharon 4bc30cc
taplo format
liamaharon febd964
move config to .config
liamaharon 235cf4d
fix ci
liamaharon 64dfe5b
fix array order
liamaharon c5b5521
merge
liamaharon 0d01c02
format
liamaharon 7d11310
special order role for deb config
liamaharon 4e1b89e
fix config
liamaharon 7cffceb
fix cargo flag order
liamaharon 6d2861a
fix style guide and move taplo config to .config
liamaharon File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# all options https://taplo.tamasfe.dev/configuration/formatter-options.html | ||
|
||
# ignore zombienet as they do some deliberate custom toml stuff | ||
exclude = [ | ||
"cumulus/zombienet/**", | ||
"polkadot/node/malus/integrationtests/**", | ||
"polkadot/zombienet_tests/**", | ||
"substrate/zombienet/**", | ||
] | ||
|
||
[formatting] | ||
reorder_arrays = true | ||
inline_table_expand = false | ||
array_auto_expand = false | ||
array_auto_collapse = false | ||
indent_string = " " # tab |
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
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mordamax can we please enhance
bot fmt
to also runtaplo format
, after this pr got merged?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tracked paritytech/command-bot-scripts#60
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rcny probably better then to include taplo-cli into ci unified? so it's version is controlled from image, vs duplicated here and in cmd bot?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yea sounds good. I think you can also add Zepter to it, it seems stable enough for now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
paritytech/scripts#613
Zepter is also added via this PR, so Zepter installation could be removed from the CI job.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bkchr added taplo to
bot fmt