Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #25

Merged
merged 2 commits into from
Feb 7, 2024
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 @@ -32,7 +32,7 @@ repos:
- id: text-unicode-replacement-char

- repo: https://github.com/psf/black
rev: 23.12.1
rev: 24.1.1
hooks:
- id: black
additional_dependencies: [toml]
Expand All @@ -44,7 +44,7 @@ repos:
additional_dependencies: [black]

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.1.9"
rev: "v0.2.0"
hooks:
- id: ruff
args:
Expand Down
7 changes: 4 additions & 3 deletions docs/_ext/sphinx_ext_autosummary_context.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Monkey-patching autosummary to emit the autosummary-gather-context event."""

from inspect import signature
from typing import TYPE_CHECKING

Expand Down Expand Up @@ -43,9 +44,9 @@ def setup(app: "Sphinx") -> None:
app.disconnect(listener_id)
else:
# patch generate_autosummary_docs to call the wrapper above
generate_autosummary_docs.__globals__[
"generate_autosummary_content"
] = generate_autosummary_content_with_context
generate_autosummary_docs.__globals__["generate_autosummary_content"] = (
generate_autosummary_content_with_context
)

# register the new event
app.add_event("autosummary-gather-context")
Loading