This is an automated email from the ASF dual-hosted git repository.

xuanwo pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/opendal.git


The following commit(s) were added to refs/heads/main by this push:
     new 7a72c7735 ci: Add checks for taplo (#7016)
7a72c7735 is described below

commit 7a72c773514a97d439a325128032979d7e0c7758
Author: Xuanwo <[email protected]>
AuthorDate: Mon Dec 15 20:19:00 2025 +0800

    ci: Add checks for taplo (#7016)
    
    * ci: Add checks for taplo
    
    * format code
    
    * Update .github/workflows/ci_check.yml
    
    Co-authored-by: tison <[email protected]>
    
    ---------
    
    Co-authored-by: tison <[email protected]>
---
 .github/workflows/ci_check.yml                | 14 ++++++++++++++
 core/Cargo.toml                               |  2 +-
 core/layers/immutable-index/Cargo.toml        |  5 ++++-
 core/layers/observe-metrics-common/Cargo.toml |  5 ++++-
 core/layers/otelmetrics/Cargo.toml            |  4 +++-
 core/layers/oteltrace/Cargo.toml              |  4 +++-
 core/services/fs/Cargo.toml                   |  4 +++-
 core/services/gcs/Cargo.toml                  | 10 ++++++++--
 core/services/oss/Cargo.toml                  |  9 +++++++--
 9 files changed, 47 insertions(+), 10 deletions(-)

diff --git a/.github/workflows/ci_check.yml b/.github/workflows/ci_check.yml
index 521bad863..009aa20df 100644
--- a/.github/workflows/ci_check.yml
+++ b/.github/workflows/ci_check.yml
@@ -67,6 +67,20 @@ jobs:
       - name: Rust Code Format
         run: ./scripts/workspace.py cargo fmt -- --check
 
+  toml-format:
+    runs-on: ubuntu-latest
+    timeout-minutes: 10
+    env:
+      FORCE_COLOR: 1
+    steps:
+      - uses: actions/checkout@v5
+      - name: Setup taplo
+        uses: taiki-e/install-action@v2
+        with:
+          tool: taplo-cli
+      - name: TOML format
+        run: taplo format --check
+
   dependencies:
     runs-on: ubuntu-latest
     timeout-minutes: 10
diff --git a/core/Cargo.toml b/core/Cargo.toml
index c08771cac..e8ec7fdb3 100644
--- a/core/Cargo.toml
+++ b/core/Cargo.toml
@@ -208,6 +208,7 @@ opendal-service-azblob = { path = "services/azblob", 
version = "0.55.0", optiona
 opendal-service-azdls = { path = "services/azdls", version = "0.55.0", 
optional = true, default-features = false }
 opendal-service-azfile = { path = "services/azfile", version = "0.55.0", 
optional = true, default-features = false }
 opendal-service-cloudflare-kv = { path = "services/cloudflare-kv", version = 
"0.55.0", optional = true, default-features = false }
+opendal-service-fs = { path = "services/fs", version = "0.55.0", optional = 
true, default-features = false }
 opendal-service-ftp = { path = "services/ftp", version = "0.55.0", optional = 
true, default-features = false }
 opendal-service-gcs = { path = "services/gcs", version = "0.55.0", optional = 
true, default-features = false }
 opendal-service-ghac = { path = "services/ghac", version = "0.55.0", optional 
= true, default-features = false }
@@ -215,7 +216,6 @@ opendal-service-hdfs-native = { path = 
"services/hdfs-native", version = "0.55.0
 opendal-service-ipfs = { path = "services/ipfs", version = "0.55.0", optional 
= true, default-features = false }
 opendal-service-moka = { path = "services/moka", version = "0.55.0", optional 
= true, default-features = false }
 opendal-service-mysql = { path = "services/mysql", version = "0.55.0", 
optional = true, default-features = false }
-opendal-service-fs = { path = "services/fs", version = "0.55.0", optional = 
true, default-features = false }
 opendal-service-obs = { path = "services/obs", version = "0.55.0", optional = 
true, default-features = false }
 opendal-service-oss = { path = "services/oss", version = "0.55.0", optional = 
true, default-features = false }
 opendal-service-postgresql = { path = "services/postgresql", version = 
"0.55.0", optional = true, default-features = false }
diff --git a/core/layers/immutable-index/Cargo.toml 
b/core/layers/immutable-index/Cargo.toml
index b45debe6f..fbc5cc7dc 100644
--- a/core/layers/immutable-index/Cargo.toml
+++ b/core/layers/immutable-index/Cargo.toml
@@ -39,4 +39,7 @@ futures = { workspace = true, default-features = true }
 log = { workspace = true }
 opendal-core = { path = "../../core", version = "0.55.0" }
 tokio = { workspace = true, features = ["macros", "rt-multi-thread"] }
-tracing-subscriber = { version = "0.3", features = ["env-filter", 
"tracing-log"] }
+tracing-subscriber = { version = "0.3", features = [
+  "env-filter",
+  "tracing-log",
+] }
diff --git a/core/layers/observe-metrics-common/Cargo.toml 
b/core/layers/observe-metrics-common/Cargo.toml
index 5206cd453..2446de6ca 100644
--- a/core/layers/observe-metrics-common/Cargo.toml
+++ b/core/layers/observe-metrics-common/Cargo.toml
@@ -31,6 +31,9 @@ version = { workspace = true }
 all-features = true
 
 [dependencies]
-futures = { version = "0.3", default-features = false, features = ["std", 
"async-await"] }
+futures = { version = "0.3", default-features = false, features = [
+  "std",
+  "async-await",
+] }
 http = { workspace = true }
 opendal-core = { path = "../../core", version = "0.55.0", default-features = 
false }
diff --git a/core/layers/otelmetrics/Cargo.toml 
b/core/layers/otelmetrics/Cargo.toml
index 3441b07a1..88f5bb513 100644
--- a/core/layers/otelmetrics/Cargo.toml
+++ b/core/layers/otelmetrics/Cargo.toml
@@ -33,4 +33,6 @@ all-features = true
 [dependencies]
 opendal-core = { path = "../../core", version = "0.55.0", default-features = 
false }
 opendal-layer-observe-metrics-common = { path = "../observe-metrics-common", 
version = "0.55.0", default-features = false }
-opentelemetry = { version = "0.31.0", default-features = false, features = 
["metrics"] }
+opentelemetry = { version = "0.31.0", default-features = false, features = [
+  "metrics",
+] }
diff --git a/core/layers/oteltrace/Cargo.toml b/core/layers/oteltrace/Cargo.toml
index c75cb5a01..b54d8ec72 100644
--- a/core/layers/oteltrace/Cargo.toml
+++ b/core/layers/oteltrace/Cargo.toml
@@ -32,7 +32,9 @@ all-features = true
 
 [dependencies]
 opendal-core = { path = "../../core", version = "0.55.0", default-features = 
false }
-opentelemetry = { version = "0.31.0", default-features = false, features = 
["trace"] }
+opentelemetry = { version = "0.31.0", default-features = false, features = [
+  "trace",
+] }
 
 [dev-dependencies]
 opendal-core = { path = "../../core", version = "0.55.0" }
diff --git a/core/services/fs/Cargo.toml b/core/services/fs/Cargo.toml
index 99d472389..7632e6dbc 100644
--- a/core/services/fs/Cargo.toml
+++ b/core/services/fs/Cargo.toml
@@ -31,7 +31,9 @@ version = { workspace = true }
 all-features = true
 
 [dependencies]
-opendal-core = { path = "../../core", version = "0.55.0", default-features = 
false, features = ["internal-tokio-rt"] }
+opendal-core = { path = "../../core", version = "0.55.0", default-features = 
false, features = [
+  "internal-tokio-rt",
+] }
 
 bytes = { workspace = true }
 ctor = { workspace = true }
diff --git a/core/services/gcs/Cargo.toml b/core/services/gcs/Cargo.toml
index 8780772ec..0727d55ba 100644
--- a/core/services/gcs/Cargo.toml
+++ b/core/services/gcs/Cargo.toml
@@ -41,8 +41,14 @@ http = { workspace = true }
 log = { workspace = true }
 percent-encoding = "2.3"
 quick-xml = { workspace = true, features = ["serialize"] }
-reqsign = { workspace = true, features = ["services-google", 
"reqwest_request"] }
-reqwest = { version = "0.12.24", features = ["json", "stream"], 
default-features = false }
+reqsign = { workspace = true, features = [
+  "services-google",
+  "reqwest_request",
+] }
+reqwest = { version = "0.12.24", features = [
+  "json",
+  "stream",
+], default-features = false }
 serde = { workspace = true, features = ["derive"] }
 serde_json = { workspace = true }
 tokio = { workspace = true, features = ["rt"] }
diff --git a/core/services/oss/Cargo.toml b/core/services/oss/Cargo.toml
index 9448602a1..38e3e064b 100644
--- a/core/services/oss/Cargo.toml
+++ b/core/services/oss/Cargo.toml
@@ -38,8 +38,13 @@ ctor = { workspace = true }
 http = { workspace = true }
 log = { workspace = true }
 quick-xml = { workspace = true, features = ["serialize", "overlapped-lists"] }
-reqsign = { workspace = true, features = ["services-aliyun", 
"reqwest_request"] }
-reqwest = { version = "0.12.24", features = ["stream"], default-features = 
false }
+reqsign = { workspace = true, features = [
+  "services-aliyun",
+  "reqwest_request",
+] }
+reqwest = { version = "0.12.24", features = [
+  "stream",
+], default-features = false }
 serde = { workspace = true, features = ["derive"] }
 
 [dev-dependencies]

Reply via email to