From dbee8fa8f17d6647d75b8f287cdec239db2578c5 Mon Sep 17 00:00:00 2001 From: Karim Malik <79924100+km-64@users.noreply.github.com> Date: Thu, 25 Jun 2026 15:12:24 +0200 Subject: [PATCH 1/2] Add ruff format check to ci.yml --- .github/workflows/ci.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4504328fe..59ae2c7c9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -79,7 +79,12 @@ jobs: run: | uv run zuban check pymodbus examples test - - name: ruff + - name: ruff (format check) + if: matrix.run_lint == true + run: | + uv run ruff format --check . + + - name: ruff (lint check) if: matrix.run_lint == true run: | uv run ruff check . From 59522bcc2c0688d32e3816362586e843f116768f Mon Sep 17 00:00:00 2001 From: Karim Malik <79924100+km-64@users.noreply.github.com> Date: Thu, 25 Jun 2026 16:24:26 +0200 Subject: [PATCH 2/2] Add ruff formatting to check_ci.sh --- check_ci.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/check_ci.sh b/check_ci.sh index 14b72be8d..3e6bad2e3 100755 --- a/check_ci.sh +++ b/check_ci.sh @@ -7,6 +7,7 @@ trap 'echo "\"${last_command}\" command filed with exit code $?."' EXIT codespell ruff check --fix --exit-non-zero-on-fix . +ruff format . pylint --recursive=y examples pymodbus test zuban check pymodbus examples test if [ $1 ]; then