From c2ed86c55ea31bd8e65bf88489a9765ebdd1c54d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=B3=96=E9=9C=B2=E6=98=9F=E9=9C=9C=E2=80=A2=E6=9A=96?= =?UTF-8?q?=E9=9C=9E=E6=8B=BE=E5=85=89?= <2468001320@qq.com> Date: Wed, 19 Aug 2026 10:51:04 +0800 Subject: [PATCH] fix: expand ruff linting scope to cover pyflakes, bugbear, bandit, isort --- pyproject.toml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index ed2b6efb..8216a6bc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -76,6 +76,7 @@ skip_covered = false target-version = "py314" [tool.ruff.lint] -# Keep Ruff narrowly scoped to pyupgrade/deprecation detection; Flake8 remains -# the repository's general-purpose Python lint gate. -select = ["UP"] +# Expanded beyond pyupgrade: F (pyflakes), B (bugbear), S (bandit security), +# I (isort). Flake8 pre-commit hook retained as a secondary gate during the +# transition, but Ruff now covers the same surface. +select = ["UP", "F", "B", "S", "I"]