Governor: driver.py lint-sauber (Ruff gruen)
Imports nach oben (sortiert), Endpoint-Setzen in main() statt Modulebene -> kein E402/unused-noqa mehr. governor.py war bereits sauber. 'ruff check' = 0. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -12,15 +12,15 @@ Aufruf (cwd muss das Test-Repo sein, mit venv-python):
|
|||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
os.environ.setdefault("OPENAI_API_BASE", "http://127.0.0.1:8100/v1")
|
from aider.coders import Coder
|
||||||
os.environ.setdefault("OPENAI_API_KEY", "dummy")
|
from aider.io import InputOutput
|
||||||
|
from aider.models import Model
|
||||||
from aider.coders import Coder # noqa: E402
|
|
||||||
from aider.models import Model # noqa: E402
|
|
||||||
from aider.io import InputOutput # noqa: E402
|
|
||||||
|
|
||||||
|
|
||||||
def main() -> int:
|
def main() -> int:
|
||||||
|
# Endpoint VOR den Aider-Aufrufen setzen (litellm liest es zur Laufzeit).
|
||||||
|
os.environ.setdefault("OPENAI_API_BASE", "http://127.0.0.1:8100/v1")
|
||||||
|
os.environ.setdefault("OPENAI_API_KEY", "dummy")
|
||||||
if len(sys.argv) < 2:
|
if len(sys.argv) < 2:
|
||||||
print("usage: driver.py <messages-file>", file=sys.stderr)
|
print("usage: driver.py <messages-file>", file=sys.stderr)
|
||||||
return 2
|
return 2
|
||||||
|
|||||||
Reference in New Issue
Block a user