Skip to content

Commit

Permalink
ci: Add TOML validation with taplo (#1034)
Browse files Browse the repository at this point in the history
Co-authored-by: Casper Meijn <casper@meijn.net>
  • Loading branch information
gibbz00 and caspermeijn committed Apr 26, 2024
1 parent a53ad51 commit 6914543
Show file tree
Hide file tree
Showing 12 changed files with 40 additions and 26 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,18 @@ jobs:
components: rustfmt
- run: cargo fmt --all --check

toml_validation:
runs-on: ubuntu-latest
container:
image: tamasfe/taplo:0.8.1
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: taplo lint
run: taplo lint
- name: taplo fmt
run: taplo fmt --check --diff

clippy:
runs-on: ubuntu-latest
steps:
Expand Down
2 changes: 1 addition & 1 deletion clippy.toml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
too-many-arguments-threshold=8
too-many-arguments-threshold = 8
4 changes: 2 additions & 2 deletions conformance/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
name = "conformance"
version = "0.0.0"
authors = [
"Dan Burkert <dan@danburkert.com>",
"Tokio Contributors <team@tokio.rs>",
"Dan Burkert <dan@danburkert.com>",
"Tokio Contributors <team@tokio.rs>",
]
publish = false
edition = "2018"
Expand Down
4 changes: 2 additions & 2 deletions fuzz/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
name = "fuzz"
version = "0.0.0"
authors = [
"Dan Burkert <dan@danburkert.com>",
"Tokio Contributors <team@tokio.rs>",
"Dan Burkert <dan@danburkert.com>",
"Tokio Contributors <team@tokio.rs>",
]
publish = false
edition = "2018"
Expand Down
8 changes: 4 additions & 4 deletions prost-build/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
name = "prost-build"
version = "0.12.4"
authors = [
"Dan Burkert <dan@danburkert.com>",
"Lucio Franco <luciofranco14@gmail.com>",
"Casper Meijn <casper@meijn.net>",
"Tokio Contributors <team@tokio.rs>",
"Dan Burkert <dan@danburkert.com>",
"Lucio Franco <luciofranco14@gmail.com>",
"Casper Meijn <casper@meijn.net>",
"Tokio Contributors <team@tokio.rs>",
]
license = "Apache-2.0"
repository = "https://github.com/tokio-rs/prost"
Expand Down
10 changes: 5 additions & 5 deletions prost-derive/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
name = "prost-derive"
version = "0.12.4"
authors = [
"Dan Burkert <dan@danburkert.com>",
"Lucio Franco <luciofranco14@gmail.com>",
"Casper Meijn <casper@meijn.net>",
"Tokio Contributors <team@tokio.rs>",
"Dan Burkert <dan@danburkert.com>",
"Lucio Franco <luciofranco14@gmail.com>",
"Casper Meijn <casper@meijn.net>",
"Tokio Contributors <team@tokio.rs>",
]
license = "Apache-2.0"
repository = "https://github.com/tokio-rs/prost"
Expand All @@ -23,4 +23,4 @@ anyhow = "1.0.1"
itertools = { version = ">=0.10, <=0.12", default-features = false, features = ["use_alloc"] }
proc-macro2 = "1"
quote = "1"
syn = { version = "2", features = [ "extra-traits" ] }
syn = { version = "2", features = ["extra-traits"] }
8 changes: 4 additions & 4 deletions prost-types/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
name = "prost-types"
version = "0.12.4"
authors = [
"Dan Burkert <dan@danburkert.com>",
"Lucio Franco <luciofranco14@gmail.com>",
"Casper Meijn <casper@meijn.net>",
"Tokio Contributors <team@tokio.rs>",
"Dan Burkert <dan@danburkert.com>",
"Lucio Franco <luciofranco14@gmail.com>",
"Casper Meijn <casper@meijn.net>",
"Tokio Contributors <team@tokio.rs>",
]
license = "Apache-2.0"
repository = "https://github.com/tokio-rs/prost"
Expand Down
4 changes: 2 additions & 2 deletions protobuf/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
name = "protobuf"
version = "0.0.0"
authors = [
"Dan Burkert <dan@danburkert.com>",
"Tokio Contributors <team@tokio.rs>",
"Dan Burkert <dan@danburkert.com>",
"Tokio Contributors <team@tokio.rs>",
]
publish = false
edition = "2018"
Expand Down
2 changes: 2 additions & 0 deletions taplo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[formatting]
inline_table_expand = false
4 changes: 2 additions & 2 deletions tests-2015/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
name = "tests-2015"
version = "0.0.0"
authors = [
"Dan Burkert <dan@danburkert.com>",
"Tokio Contributors <team@tokio.rs>",
"Dan Burkert <dan@danburkert.com>",
"Tokio Contributors <team@tokio.rs>",
]
publish = false
edition = "2015"
Expand Down
4 changes: 2 additions & 2 deletions tests-no-std/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
name = "tests-no-std"
version = "0.0.0"
authors = [
"Dan Burkert <dan@danburkert.com>",
"Tokio Contributors <team@tokio.rs>",
"Dan Burkert <dan@danburkert.com>",
"Tokio Contributors <team@tokio.rs>",
]
publish = false
edition = "2018"
Expand Down
4 changes: 2 additions & 2 deletions tests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
name = "tests"
version = "0.0.0"
authors = [
"Dan Burkert <dan@danburkert.com>",
"Tokio Contributors <team@tokio.rs>",
"Dan Burkert <dan@danburkert.com>",
"Tokio Contributors <team@tokio.rs>",
]
publish = false
edition = "2018"
Expand Down

0 comments on commit 6914543

Please sign in to comment.