From bd0c589c3930529458b2ed4812115722fff19b94 Mon Sep 17 00:00:00 2001 From: Anderson Date: Sat, 3 Oct 2026 17:49:25 +0800 Subject: [PATCH] fix(ci): preserve lint policy across Ruff upgrades --- .github/workflows/release.yml | 2 +- backend/pyproject.toml | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 44619ab..825dd40 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -142,7 +142,7 @@ jobs: working-directory: backend run: | pdm run test - pdm run lint + pdm run ruff check . --select E4,E7,E9,F pdm run python examples/reliable_report.py - name: Build frontend bundle diff --git a/backend/pyproject.toml b/backend/pyproject.toml index 09bd7df..498eac3 100644 --- a/backend/pyproject.toml +++ b/backend/pyproject.toml @@ -85,3 +85,7 @@ dev = [ testpaths = ["tests"] python_files = ["test_*.py"] addopts = "-q" + +# Keep the original lint policy stable across Ruff default-rule changes. +[tool.ruff.lint] +select = ["E4", "E7", "E9", "F"]