# The agent runs on the CUDA base image's Python 3.12 (Ubuntu 24.04) — NOT the # 3.14 that CI's ci-python image and the repo-root ruff.toml target. Pin the # agent to py312 so ruff enforces 3.12 compatibility and never auto-applies a # 3.14-only fix (e.g. unquoting a self-referential annotation, which PEP 649 # makes safe on 3.14 but NameErrors on 3.12). Inherit the root lint rules. extend = "../ruff.toml" target-version = "py312"