diff --git a/docs/conf.py b/docs/conf.py index 952791856..223fae81d 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -60,6 +60,7 @@ "sphinx.ext.linkcode", "nbsphinx", "IPython.sphinxext.ipython_console_highlighting", + "sphinx_toolbox.more_autodoc.autoprotocol", ] myst_enable_extensions = [ "html_image", # So README.md can be used on github and sphinx docs diff --git a/pyproject.toml b/pyproject.toml index 03a409c7e..f6c3b8b09 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -71,6 +71,7 @@ doc = [ "sphinx-autodoc-typehints>=1.11.0", "sphinx-issues", "sphinx-copybutton", + "sphinx-toolbox", "sphinxext.opengraph", "nbsphinx", "scanpydoc[theme,typehints] >=0.13.4", @@ -184,9 +185,6 @@ ignore = [ [tool.ruff.lint.isort] known-first-party = ["anndata"] required-imports = ["from __future__ import annotations"] -[tool.ruff.lint.flake8-type-checking] -exempt-modules = [] -strict = true [tool.codespell] skip = ".git,*.pdf,*.svg"