From 3628ac51e5a542c590e1932df9580281d7666f34 Mon Sep 17 00:00:00 2001 From: Tianyu Liu Date: Fri, 12 Jun 2026 22:56:21 +0200 Subject: [PATCH] chore(m2): green the ruff baseline before M2 orchestration - ignore E402 in scripts/*.py (deliberate sys.path bootstrap before app imports) - drop unused pathlib.Path import in tests/test_auth.py Establishes a clean ruff gate so each M2 task can be verified green at its boundary. --- pyproject.toml | 5 +++++ tests/test_auth.py | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 9979338..e7ab1ae 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -26,3 +26,8 @@ pythonpath = ["."] [tool.ruff] line-length = 100 + +[tool.ruff.lint.per-file-ignores] +# Scripts bootstrap sys.path before importing app modules, so their top-level +# app imports legitimately sit below executable setup code. +"scripts/*.py" = ["E402"] diff --git a/tests/test_auth.py b/tests/test_auth.py index f39849d..d354aa2 100644 --- a/tests/test_auth.py +++ b/tests/test_auth.py @@ -1,6 +1,5 @@ import re import sqlite3 -from pathlib import Path from fastapi.testclient import TestClient