mirror of
https://github.com/jamiepine/voicebox.git
synced 2026-10-03 00:55:14 -07:00
suppress E402 for app.py (AMD env vars must precede torch import)
This commit is contained in:
@@ -60,6 +60,8 @@ ignore = [
|
|||||||
# Entry points and scripts legitimately use print.
|
# Entry points and scripts legitimately use print.
|
||||||
"server.py" = ["T201"]
|
"server.py" = ["T201"]
|
||||||
"main.py" = ["T201"]
|
"main.py" = ["T201"]
|
||||||
|
# AMD GPU env vars must be set before torch import.
|
||||||
|
"app.py" = ["E402"]
|
||||||
|
|
||||||
[tool.ruff.lint.isort]
|
[tool.ruff.lint.isort]
|
||||||
known-first-party = ["backend"]
|
known-first-party = ["backend"]
|
||||||
|
|||||||
Reference in New Issue
Block a user