diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0428183..0ba48b0 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -37,9 +37,8 @@ repos: - id: check-toml - id: check-yaml - id: check-merge-conflict - # Re-enable once the repository leaves early PR/bootstrap work. - # - id: no-commit-to-branch - # args: [--branch=main] + - id: no-commit-to-branch + args: [--branch=main] - id: detect-private-key - repo: https://github.com/codespell-project/codespell rev: v2.4.2 diff --git a/README.md b/README.md index ed96195..cb1d21f 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,9 @@ # scverse-backends +[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/scverse/scverse-backends/main.svg)](https://results.pre-commit.ci/latest/github/scverse/scverse-backends/main) +[![codecov](https://codecov.io/gh/scverse/scverse-backends/graph/badge.svg?token=BMSUQWKIN8)](https://codecov.io/gh/scverse/scverse-backends) +[![Documentation Status](https://readthedocs.org/projects/scverse-backends/badge/?version=latest)](https://scverse-backends.readthedocs.io/en/latest/?badge=latest) + > ⚠️ **Under active development.** APIs may shift. The default plugin & dispatch mechanism for [scverse](https://scverse.org). @@ -28,8 +32,7 @@ with eh.settings.use_backend("accelerated"): ## Docs -Full docs at [scverse-backends.readthedocs.io](https://scverse-backends.readthedocs.io) -(once the repo is published). For now, see `docs/`. +Full docs at [scverse-backends.readthedocs.io](https://scverse-backends.readthedocs.io/en/latest/). ## License diff --git a/docs/index.md b/docs/index.md index a77b766..3fa4df9 100644 --- a/docs/index.md +++ b/docs/index.md @@ -1,5 +1,9 @@ # scverse-backends +[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/scverse/scverse-backends/main.svg)](https://results.pre-commit.ci/latest/github/scverse/scverse-backends/main) +[![codecov](https://codecov.io/gh/scverse/scverse-backends/graph/badge.svg?token=BMSUQWKIN8)](https://codecov.io/gh/scverse/scverse-backends) +[![Documentation Status](https://readthedocs.org/projects/scverse-backends/badge/?version=latest)](https://scverse-backends.readthedocs.io/en/latest/?badge=latest) + ```{warning} This repository is under active development. APIs may shift before the first stable release. diff --git a/tests/_helpers.py b/tests/_helpers.py index 65bbaea..edf539d 100644 --- a/tests/_helpers.py +++ b/tests/_helpers.py @@ -2,7 +2,10 @@ from __future__ import annotations -from scverse_backends import BackendDispatcher +from typing import TYPE_CHECKING + +if TYPE_CHECKING: + from scverse_backends import BackendDispatcher class FakeBackend: