Skip to content
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

ci: Add TOML validation with taplo #1034

Merged
merged 2 commits into from
Apr 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading