From ba298a26c04f2dbe600c0337a959e0791ee18ebe Mon Sep 17 00:00:00 2001 From: altissimo Date: Thu, 5 Nov 2026 15:42:30 -0500 Subject: [PATCH 1/2] fix(ci): install the dev group with plain poetry sync Every CI job failed at the install step with `The option "--group" does not exist`: poetry sync takes --with/--only, not --group. The dev group is not optional, so plain `poetry sync` already installs it. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01VeRtUXLok9MasZv7KAE7p7 --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e7d9828..81e3b49 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,7 +15,7 @@ jobs: with: python-version: "3.13" - run: pipx install poetry==2.0.1 - - run: poetry sync --group dev + - run: poetry sync - run: poetry run pre-commit run --all-files test: @@ -29,7 +29,7 @@ jobs: with: python-version: ${{ matrix.python-version }} - run: pipx install poetry==2.0.1 - - run: poetry sync --group dev + - run: poetry sync - run: poetry run pytest --cov=altissimo --cov-report=term-missing --cov-fail-under=80 build: From f5ecf89792e6e75cce0c018bca0a93670b1dbf5d Mon Sep 17 00:00:00 2001 From: altissimo Date: Thu, 5 Nov 2026 15:46:01 -0500 Subject: [PATCH 2/2] style: apply pre-commit fixes Lint never ran before the CI install step was fixed. end-of-file-fixer drops the extra blank line at the end of pyproject.toml, and ruff applies its three automatic fixes in client.py. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01VeRtUXLok9MasZv7KAE7p7 --- pyproject.toml | 1 - src/altissimo/bcl/client.py | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index a4a728b..ffc66eb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -69,4 +69,3 @@ namespace_packages = true explicit_package_bases = true mypy_path = "src" plugins = ["pydantic.mypy"] - diff --git a/src/altissimo/bcl/client.py b/src/altissimo/bcl/client.py index d5541a0..46ee91b 100644 --- a/src/altissimo/bcl/client.py +++ b/src/altissimo/bcl/client.py @@ -88,15 +88,15 @@ def _get_json(self, path: str, *, raise_for_status: bool = True) -> Any: def get_current_user(self) -> dict[str, Any]: """Get the current user.""" - return cast(dict[str, Any], self._get_json("/auth")) + return cast("dict[str, Any]", self._get_json("/auth")) def get_bcl_api_order(self, order_id: str) -> dict[str, Any]: """Get a BCL API Order.""" - return cast(dict[str, Any], self._get_json(f"/api/order/{order_id}", raise_for_status=False)) + return cast("dict[str, Any]", self._get_json(f"/api/order/{order_id}", raise_for_status=False)) def get_bcl_api_sample(self, sample_id: str) -> dict[str, Any]: """Get a BCL API Sample.""" - return cast(dict[str, Any], self._get_json(f"/api/sample/{sample_id}", raise_for_status=False)) + return cast("dict[str, Any]", self._get_json(f"/api/sample/{sample_id}", raise_for_status=False)) def list_bcl_api_orders(self) -> list[dict[str, Any]]: """List all BCL API Orders, following pagination."""