Skip to content

Commit a32a6da

Browse files
committed
fix: make mypy pass on rendered template (pytest via test group, narrow anndata layer value)
1 parent 2238d04 commit a32a6da

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

{{cookiecutter.project_name}}/.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ repos:
2727
hooks:
2828
- id: mypy
2929
name: mypy
30-
entry: uv run mypy src tests
30+
entry: uv run --group test mypy src tests
3131
language: system
3232
types: [python]
3333
files: ^(src|tests)/

{{cookiecutter.project_name}}/src/{{cookiecutter.package_name}}/pp/basic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def elaborate_example(
7171
msg = f"Item {item} matrix is not a NumPy array but of type {matrix.__class__}."
7272
raise ValueError(msg)
7373

74-
result.append(transform(matrix.flatten()))
74+
result.append(transform(matrix.flatten())) # type: ignore[attr-defined]
7575

7676
if len(result) >= max_items:
7777
break

0 commit comments

Comments
 (0)