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: 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."""