-
Notifications
You must be signed in to change notification settings - Fork 341
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2261 from CosmWasm/aw/taplo-toml
Add `taplo` for TOML formatting
- Loading branch information
Showing
24 changed files
with
181 additions
and
58 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,26 @@ | ||
name: "TOML checks" | ||
|
||
on: | ||
merge_group: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
workflow_dispatch: | ||
|
||
jobs: | ||
fmt-check: | ||
name: "Formatting" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install taplo | ||
run: | | ||
curl -fsSL https://github.com/tamasfe/taplo/releases/latest/download/taplo-full-linux-x86_64.gz \ | ||
| gzip -d - | install -m 755 /dev/stdin /usr/local/bin/taplo | ||
- run: | | ||
taplo fmt | ||
CHANGES_IN_REPO=$(git status --porcelain) | ||
if [[ -n "$CHANGES_IN_REPO" ]]; then | ||
exit 1 | ||
fi |
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,3 @@ | ||
[formatting] | ||
indent_string = " " | ||
reorder_arrays = true |
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 |
---|---|---|
@@ -1,10 +1,5 @@ | ||
[default] | ||
extend-ignore-re = [ | ||
"(?Rm)^.*(#|//)\\s*spellchecker:disable-line$", | ||
] | ||
extend-ignore-re = ["(?Rm)^.*(#|//)\\s*spellchecker:disable-line$"] | ||
|
||
[files] | ||
extend-exclude = [ | ||
"contracts/**/schema/**", | ||
"packages/crypto/**/*.json", | ||
] | ||
extend-exclude = ["contracts/**/schema/**", "packages/crypto/**/*.json"] |
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 |
---|---|---|
@@ -1,7 +1,10 @@ | ||
[package] | ||
name = "burner" | ||
version = "0.0.0" | ||
authors = ["Ethan Frey <[email protected]>", "Simon Warta <[email protected]>"] | ||
authors = [ | ||
"Ethan Frey <[email protected]>", | ||
"Simon Warta <[email protected]>", | ||
] | ||
edition = "2021" | ||
publish = false | ||
license = "Apache-2.0" | ||
|
@@ -31,9 +34,14 @@ cranelift = ["cosmwasm-vm/cranelift"] | |
|
||
[dependencies] | ||
cosmwasm-schema = { path = "../../packages/schema" } | ||
cosmwasm-std = { path = "../../packages/std", features = ["iterator", "cosmwasm_1_4"] } | ||
cosmwasm-std = { path = "../../packages/std", features = [ | ||
"cosmwasm_1_4", | ||
"iterator", | ||
] } | ||
schemars = "0.8.12" | ||
serde = { version = "1.0.103", default-features = false, features = ["derive"] } | ||
|
||
[dev-dependencies] | ||
cosmwasm-vm = { path = "../../packages/vm", default-features = false, features = ["iterator"] } | ||
cosmwasm-vm = { path = "../../packages/vm", default-features = false, features = [ | ||
"iterator", | ||
] } |
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
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 |
---|---|---|
@@ -1,7 +1,10 @@ | ||
[package] | ||
name = "queue" | ||
version = "0.0.0" | ||
authors = ["Simon Warta <[email protected]>", "Ethan Frey <[email protected]>"] | ||
authors = [ | ||
"Ethan Frey <[email protected]>", | ||
"Simon Warta <[email protected]>", | ||
] | ||
edition = "2021" | ||
publish = false | ||
license = "Apache-2.0" | ||
|
@@ -33,9 +36,14 @@ library = [] | |
[dependencies] | ||
cosmwasm-schema = { path = "../../packages/schema" } | ||
# cosmwasm_1_4 is enabled here for more efficient `range_keys` and `range_values` | ||
cosmwasm-std = { path = "../../packages/std", features = ["iterator", "cosmwasm_1_4"] } | ||
cosmwasm-std = { path = "../../packages/std", features = [ | ||
"cosmwasm_1_4", | ||
"iterator", | ||
] } | ||
schemars = "0.8.12" | ||
serde = { version = "1.0.103", default-features = false, features = ["derive"] } | ||
|
||
[dev-dependencies] | ||
cosmwasm-vm = { path = "../../packages/vm", default-features = false, features = ["iterator"] } | ||
cosmwasm-vm = { path = "../../packages/vm", default-features = false, features = [ | ||
"iterator", | ||
] } |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
[package] | ||
name = "cosmwasm-schema" | ||
version.workspace = true | ||
authors = ["Simon Warta <[email protected]>", "Ethan Frey <[email protected]>"] | ||
authors = [ | ||
"Ethan Frey <[email protected]>", | ||
"Simon Warta <[email protected]>", | ||
] | ||
edition = "2021" | ||
description = "A dev-dependency for CosmWasm contracts to generate JSON Schema files." | ||
repository = "https://github.com/CosmWasm/cosmwasm/tree/main/packages/schema" | ||
|
Oops, something went wrong.