suppress E402 for app.py (AMD env vars must precede torch import)

This commit is contained in:
James Pine
2026-03-16 03:47:56 -07:00
parent 2d1b0ae820
commit 5c4b979480
+2
View File
@@ -60,6 +60,8 @@ ignore = [
# Entry points and scripts legitimately use print.
"server.py" = ["T201"]
"main.py" = ["T201"]
# AMD GPU env vars must be set before torch import.
"app.py" = ["E402"]
[tool.ruff.lint.isort]
known-first-party = ["backend"]