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 .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ default_stages:
minimum_pre_commit_version: 2.16.0
repos:
- repo: https://github.com/biomejs/pre-commit
rev: v2.4.4
rev: v2.4.6
hooks:
- id: biome-format
exclude: ^\.cruft\.json$ # inconsistent indentation with cruft - file never to be modified manually.
Expand All @@ -16,7 +16,7 @@ repos:
hooks:
- id: pyproject-fmt
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.4
rev: v0.15.5
hooks:
- id: ruff-check
args: [--fix, --exit-non-zero-on-fix]
Expand Down
10 changes: 4 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,16 @@ maintainers = [
authors = [
{ name = "Tim Treis" },
]
requires-python = ">=3.10"
requires-python = ">=3.12"
classifiers = [
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
]
dependencies = [
"anndata",
"holoviews",
"hv-anndata",
# for debug logging (referenced from the issue template)
"session-info2",
]
Expand Down Expand Up @@ -69,9 +67,9 @@ envs.docs.scripts.clean = "git clean -fdX -- {args:docs}"
envs.hatch-test.features = [ "dev", "test" ]
envs.hatch-test.matrix = [
# Test the lowest and highest supported Python versions with normal deps
{ deps = [ "stable" ], python = [ "3.10", "3.13" ] },
{ deps = [ "stable" ], python = [ "3.14", "3.12" ] },
# Test the newest supported Python version also with pre-release deps
{ deps = [ "pre" ], python = [ "3.13" ] },
{ deps = [ "pre" ], python = [ "3.14" ] },
]
# If the matrix variable `deps` is set to "pre",
# set the environment variable `UV_PRERELEASE` to "allow".
Expand Down
15 changes: 1 addition & 14 deletions src/anndata_plot/__init__.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,3 @@
from importlib.metadata import version

import holoviews as hv

from . import pl, pp, tl
from .pl.utils import AnnDataInterface

__all__ = ["pl"]

__version__ = version("anndata-plot")

# register the AnnDataInterface with holoviews
if AnnDataInterface.datatype not in hv.core.data.datatypes:
hv.core.data.datatypes.append(AnnDataInterface.datatype)

hv.core.Interface.register(AnnDataInterface)
__all__ = ["pl", "pp", "tl"]
94 changes: 0 additions & 94 deletions src/anndata_plot/pl/utils.py

This file was deleted.

6 changes: 3 additions & 3 deletions tests/test_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
import anndata_plot


def test_package_has_version():
assert anndata_plot.__version__ is not None
def test_all() -> None:
assert set(dir(anndata_plot)) > {"pl", "pp", "tl"}


@pytest.mark.skip(reason="This decorator should be removed when test passes.")
def test_example():
def test_example() -> None:
assert 1 == 0 # This test is designed to fail.
Loading