Skip to content

Commit

Permalink
Add formatting for toml files (#167)
Browse files Browse the repository at this point in the history
* Add formatting for toml files

* Update call to taplo

* Add command to format and a command to check
  • Loading branch information
Tyler-Sch authored Jan 19, 2024
1 parent 35f3481 commit bcf2c5c
Show file tree
Hide file tree
Showing 7 changed files with 33 additions and 27 deletions.
3 changes: 1 addition & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ version = "0.1.0"
edition = "2021"
homepage = "https://rust.iceberg.apache.org/"

repository = "https://github.com/apache/iceberg-rust"
repository = "https://github.com/apache/iceberg-rust"
license = "Apache-2.0"

[workspace.dependencies]
Expand Down Expand Up @@ -69,4 +69,3 @@ urlencoding = "2"
uuid = "1.6.1"

tera = "1"

10 changes: 9 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,15 @@ cargo-sort:
cargo install cargo-sort
cargo sort -c -w

check: check-fmt check-clippy cargo-sort
fix-toml:
cargo install taplo-cli --locked
taplo fmt

check-toml:
cargo install taplo-cli --locked
taplo check

check: check-fmt check-clippy cargo-sort check-toml

unit-test:
cargo test --no-fail-fast --lib --all-features --workspace
Expand Down
10 changes: 5 additions & 5 deletions crates/catalog/hms/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@

[package]
name = "iceberg-catalog-hms"
version = { workspace = true }
edition = { workspace = true }
homepage = { workspace = true }
version = { workspace = true }
edition = { workspace = true }
homepage = { workspace = true }

categories = ["database"]
description = "Apache Iceberg Hive Metastore Catalog Support"
repository = { workspace = true }
license = { workspace = true }
repository = { workspace = true }
license = { workspace = true }
keywords = ["iceberg", "hive", "catalog"]

[dependencies]
Expand Down
13 changes: 6 additions & 7 deletions crates/catalog/rest/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@
# under the License.

[package]
name = "iceberg-catalog-rest"
version = { workspace = true }
edition = { workspace = true }
homepage = { workspace = true }
name = "iceberg-catalog-rest"
version = { workspace = true }
edition = { workspace = true }
homepage = { workspace = true }

categories = ["database"]
description = "Apache Iceberg Rust REST API"
repository = { workspace = true }
license = { workspace = true }
repository = { workspace = true }
license = { workspace = true }
keywords = ["iceberg", "rest", "catalog"]

[dependencies]
Expand All @@ -46,4 +46,3 @@ iceberg_test_utils = { path = "../../test_utils", features = ["tests"] }
mockito = { workspace = true }
port_scanner = { workspace = true }
tokio = { workspace = true }

12 changes: 6 additions & 6 deletions crates/iceberg/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@
# under the License.

[package]
name = "iceberg"
version = { workspace = true }
edition = { workspace = true }
homepage = { workspace = true }
name = "iceberg"
version = { workspace = true }
edition = { workspace = true }
homepage = { workspace = true }

categories = ["database"]
description = "Apache Iceberg Rust implementation"
repository = { workspace = true }
license = { workspace = true }
repository = { workspace = true }
license = { workspace = true }
keywords = ["iceberg"]

[dependencies]
Expand Down
10 changes: 5 additions & 5 deletions crates/test_utils/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@

[package]
name = "iceberg_test_utils"
version = { workspace = true }
edition = { workspace = true }
homepage = { workspace = true }
version = { workspace = true }
edition = { workspace = true }
homepage = { workspace = true }

repository = { workspace = true }
license = { workspace = true }
repository = { workspace = true }
license = { workspace = true }

[dependencies]
env_logger = { workspace = true }
Expand Down
2 changes: 1 addition & 1 deletion website/book.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ git-repository-url = "https://github.com/apache/iceberg-rust"
git-repository-icon = "fa-github"
edit-url-template = "https://github.com/apache/iceberg-rust/edit/main/website/{path}"
cname = "rust.iceberg.apache.org"
no-section-label = true
no-section-label = true

0 comments on commit bcf2c5c

Please sign in to comment.