Skip to content

Commit 9bf3f3f

Browse files
committed
style: 修复 ruff EXE001 与冗余 noqa
engine_report.py 有 shebang 但缺执行位;三个 # noqa: E402 在本仓 ruff 配置下 E402 并未启用,属冗余抑制。移除后 `ruff check hooks scripts tests` 全绿。
1 parent 1ea4cc6 commit 9bf3f3f

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎scripts/engine_report.py‎

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
sys.path.insert(0, str(Path(__file__).resolve().parent))
1717

18-
from codeguard.engine import ENGINES, resolve_authoritative # noqa: E402
18+
from codeguard.engine import ENGINES, resolve_authoritative
1919

2020
PROBE_TIMEOUT = 10
2121

‎tests/test_engine_boundary.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
PLUGIN = Path(__file__).resolve().parents[1]
1313
sys.path.insert(0, str(PLUGIN / "scripts"))
1414

15-
import engine_report # noqa: E402
16-
from codeguard.engine import ( # noqa: E402
15+
import engine_report
16+
from codeguard.engine import (
1717
ENGINES,
1818
LEGACY,
1919
LEGACY_EXIT,

0 commit comments

Comments
 (0)