First attempt at #2169. CI only runs linter and formatter on
changed files. Ruff does not run only on changed files so anyone
who touches a file will have to fix all the issues in it.
Added a (loose-ish) requirement for from __future__ import annotations. Press doesn't strictly need this like agent does.
But it will prevent errors where in an import is type guarded with if TYPE_CHECKING and is used later in annotations without double quotes. This feels like an inevitable bug.
First attempt at #2169. CI only runs linter and formatter on changed files. Ruff does not run only on changed files so anyone who touches a file will have to fix all the issues in it.
Added a (loose-ish) requirement for
from __future__ import annotations
. Press doesn't strictly need this like agent does.But it will prevent errors where in an import is type guarded with if TYPE_CHECKING and is used later in annotations without double quotes. This feels like an inevitable bug.