From 369a825a5baffc203b463f1747aa25bd404bc227 Mon Sep 17 00:00:00 2001 From: zethson Date: Mon, 6 Jan 2025 16:50:30 +0100 Subject: [PATCH] Fix tests Signed-off-by: zethson --- .github/workflows/run_notebooks.yml | 1 - ehrapy/_compat.py | 2 +- pyproject.toml | 5 +++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/run_notebooks.yml b/.github/workflows/run_notebooks.yml index f45fd96b..4af421c5 100644 --- a/.github/workflows/run_notebooks.yml +++ b/.github/workflows/run_notebooks.yml @@ -1,7 +1,6 @@ name: Run Notebooks on: - - push - pull_request jobs: diff --git a/ehrapy/_compat.py b/ehrapy/_compat.py index 37c38c2d..dc94a6d3 100644 --- a/ehrapy/_compat.py +++ b/ehrapy/_compat.py @@ -11,7 +11,7 @@ def _raise_array_type_not_implemented(func: Callable, type_: type) -> NotImplementedError: - return NotImplementedError( + raise NotImplementedError( f"{func.__name__} does not support array type {type_}. Must be of type {func.registry.keys()}." # type: ignore ) diff --git a/pyproject.toml b/pyproject.toml index a54b680c..4ee3ade1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -72,7 +72,7 @@ medcat = [ "medcat", ] dask = [ - "anndata[dask]", + "c[dask]", "dask-ml", ] dev = [ @@ -136,7 +136,8 @@ filterwarnings = [ "ignore:`flavor='seurat_v3'` expects raw count data, but non-integers were found:UserWarning", "ignore:All-NaN slice encountered:RuntimeWarning", "ignore:Observation names are not unique. To make them unique, call `.obs_names_make_unique`.:UserWarning", - "ignore:Trying to modify attribute .var of view" + "ignore:Trying to modify attribute `.var` of view, initializing view as actual.:anndata.ImplicitModificationWarning", + "ignore:Transforming to str index.:anndata.ImplicitModificationWarning:" ] minversion = 6.0 norecursedirs = [ '.*', 'build', 'dist', '*.egg', 'data', '__pycache__']