Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,3 @@ namespace_packages = true
explicit_package_bases = true
mypy_path = "src"
plugins = ["pydantic.mypy"]

6 changes: 3 additions & 3 deletions src/altissimo/bcl/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."""
Expand Down
Loading