diff --git a/pyproject.toml b/pyproject.toml index cc5d07fc..d075b8e9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -13,6 +13,10 @@ exclude = ['^setup\.py$', '^sphinx_immaterial/plugins/$'] plugins = ["pydantic.mypy"] check_untyped_defs = true +[[tool.mypy.overrides]] +module = ['sphinx_immaterial.plugins.*'] +follow_imports = "skip" + [tool.pytest.ini_options] minversion = "6.0" testpaths = ["tests"] @@ -54,3 +58,9 @@ exclude_lines = [ [tool.coverage.html] show_contexts = true + +[tool.ruff] +# In addition to the standard set of exclusions +extend-exclude = [ + "sphinx_immaterial/plugins" +] diff --git a/sphinx_immaterial/search.py b/sphinx_immaterial/search.py index 7de54ea2..112ac424 100644 --- a/sphinx_immaterial/search.py +++ b/sphinx_immaterial/search.py @@ -11,7 +11,7 @@ import sphinx.util.logging import sphinx.builders.html -from .plugins.search import plugin as search_plugin +from .plugins.search import plugin as search_plugin # mypy: follow_imports=skip logger = sphinx.util.logging.getLogger(__name__)