Skip to content

Commit

Permalink
fix ruff and mypy config
Browse files Browse the repository at this point in the history
  • Loading branch information
2bndy5 committed Oct 14, 2024
1 parent f9d0aa6 commit 1f2a86a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down Expand Up @@ -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"
]
2 changes: 1 addition & 1 deletion sphinx_immaterial/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__)

Expand Down

0 comments on commit 1f2a86a

Please sign in to comment.