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