Skip to content

Commit 6914543

Browse files
gibbz00caspermeijn
andauthored
ci: Add TOML validation with taplo (#1034)
Co-authored-by: Casper Meijn <[email protected]>
1 parent a53ad51 commit 6914543

File tree

12 files changed

+40
-26
lines changed

12 files changed

+40
-26
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,18 @@ jobs:
2121
components: rustfmt
2222
- run: cargo fmt --all --check
2323

24+
toml_validation:
25+
runs-on: ubuntu-latest
26+
container:
27+
image: tamasfe/taplo:0.8.1
28+
steps:
29+
- name: Checkout sources
30+
uses: actions/checkout@v4
31+
- name: taplo lint
32+
run: taplo lint
33+
- name: taplo fmt
34+
run: taplo fmt --check --diff
35+
2436
clippy:
2537
runs-on: ubuntu-latest
2638
steps:

clippy.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
too-many-arguments-threshold=8
1+
too-many-arguments-threshold = 8

conformance/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
name = "conformance"
33
version = "0.0.0"
44
authors = [
5-
"Dan Burkert <[email protected]>",
6-
"Tokio Contributors <[email protected]>",
5+
"Dan Burkert <[email protected]>",
6+
"Tokio Contributors <[email protected]>",
77
]
88
publish = false
99
edition = "2018"

fuzz/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
name = "fuzz"
33
version = "0.0.0"
44
authors = [
5-
"Dan Burkert <[email protected]>",
6-
"Tokio Contributors <[email protected]>",
5+
"Dan Burkert <[email protected]>",
6+
"Tokio Contributors <[email protected]>",
77
]
88
publish = false
99
edition = "2018"

prost-build/Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
name = "prost-build"
33
version = "0.12.4"
44
authors = [
5-
"Dan Burkert <[email protected]>",
6-
"Lucio Franco <[email protected]>",
7-
"Casper Meijn <[email protected]>",
8-
"Tokio Contributors <[email protected]>",
5+
"Dan Burkert <[email protected]>",
6+
"Lucio Franco <[email protected]>",
7+
"Casper Meijn <[email protected]>",
8+
"Tokio Contributors <[email protected]>",
99
]
1010
license = "Apache-2.0"
1111
repository = "https://github.com/tokio-rs/prost"

prost-derive/Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
name = "prost-derive"
33
version = "0.12.4"
44
authors = [
5-
"Dan Burkert <[email protected]>",
6-
"Lucio Franco <[email protected]>",
7-
"Casper Meijn <[email protected]>",
8-
"Tokio Contributors <[email protected]>",
5+
"Dan Burkert <[email protected]>",
6+
"Lucio Franco <[email protected]>",
7+
"Casper Meijn <[email protected]>",
8+
"Tokio Contributors <[email protected]>",
99
]
1010
license = "Apache-2.0"
1111
repository = "https://github.com/tokio-rs/prost"
@@ -23,4 +23,4 @@ anyhow = "1.0.1"
2323
itertools = { version = ">=0.10, <=0.12", default-features = false, features = ["use_alloc"] }
2424
proc-macro2 = "1"
2525
quote = "1"
26-
syn = { version = "2", features = [ "extra-traits" ] }
26+
syn = { version = "2", features = ["extra-traits"] }

prost-types/Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
name = "prost-types"
33
version = "0.12.4"
44
authors = [
5-
"Dan Burkert <[email protected]>",
6-
"Lucio Franco <[email protected]>",
7-
"Casper Meijn <[email protected]>",
8-
"Tokio Contributors <[email protected]>",
5+
"Dan Burkert <[email protected]>",
6+
"Lucio Franco <[email protected]>",
7+
"Casper Meijn <[email protected]>",
8+
"Tokio Contributors <[email protected]>",
99
]
1010
license = "Apache-2.0"
1111
repository = "https://github.com/tokio-rs/prost"

protobuf/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
name = "protobuf"
33
version = "0.0.0"
44
authors = [
5-
"Dan Burkert <[email protected]>",
6-
"Tokio Contributors <[email protected]>",
5+
"Dan Burkert <[email protected]>",
6+
"Tokio Contributors <[email protected]>",
77
]
88
publish = false
99
edition = "2018"

taplo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[formatting]
2+
inline_table_expand = false

tests-2015/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
name = "tests-2015"
33
version = "0.0.0"
44
authors = [
5-
"Dan Burkert <[email protected]>",
6-
"Tokio Contributors <[email protected]>",
5+
"Dan Burkert <[email protected]>",
6+
"Tokio Contributors <[email protected]>",
77
]
88
publish = false
99
edition = "2015"

0 commit comments

Comments
 (0)