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

xtsong pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/flink-agents.git

commit c2b0d602b028223c527a2a837de06b7b0ac07a3c
Author: Xu Huang <zuosi...@alibaba-inc.com>
AuthorDate: Thu Jul 31 15:23:25 2025 +0800

    [infra] Fix: lint.sh no longer modifies files during code style check
---
 tools/lint.sh | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/tools/lint.sh b/tools/lint.sh
index 3f4e5ad..bafd54b 100755
--- a/tools/lint.sh
+++ b/tools/lint.sh
@@ -91,10 +91,10 @@ run_python_lint() {
     pushd python
     if [[ "$action" == "format" ]]; then
       echo "Executing Python format with uv"
-      uv run ruff format .
+      uv run ruff check --fix .
     else
       echo "Executing Python format check with uv"
-      uv run ruff check .
+      uv run ruff check --no-fix .
     fi
     local result=$?
     popd
@@ -103,10 +103,10 @@ run_python_lint() {
     # Use traditional approach
     if [[ "$action" == "format" ]]; then
       echo "Executing Python format"
-      ruff format python
+      ruff check --fix python
     else
       echo "Executing Python format check"
-      ruff check python
+      ruff check --no-fix python
     fi
     return $?
   fi

Reply via email to