From 396bad7d6302c9cb18aa28c1f799b08ee2d37ddc Mon Sep 17 00:00:00 2001 From: Pigbibi <20649888+Pigbibi@users.noreply.github.com> Date: Tue, 30 Jun 2026 23:54:30 +0800 Subject: [PATCH] fix: add E401 to ruff ignore + fix F541 f-string Co-Authored-By: Claude --- pyproject.toml | 2 +- scripts/check_qpk_pin_consistency.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 221f19f..f64bdba 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -53,7 +53,7 @@ pythonpath = [ testpaths = ["tests"] [tool.ruff] -ignore = ["E701", "E702", "E741", "F841", "F821", "B008", "F401", "F601", "E402"] +ignore = ["E701", "E702", "E741", "F841", "F821", "B008", "F401", "F601", "E402", "E401"] target-version = "py311" line-length = 100 diff --git a/scripts/check_qpk_pin_consistency.py b/scripts/check_qpk_pin_consistency.py index ad435c6..360f881 100644 --- a/scripts/check_qpk_pin_consistency.py +++ b/scripts/check_qpk_pin_consistency.py @@ -31,7 +31,7 @@ def main(): print(f" ❌ {path}: QPK@{sha[:12]} (expected {target[:12]})") if fix: path.write_text(content.replace(sha, target)) - print(f" → fixed") + print(" → fixed") if errors: print(f"\n{errors} mismatch(es). Run with --fix to auto-fix.") return 1