Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#93)
Browse files Browse the repository at this point in the history
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] authored Aug 29, 2023
1 parent 106013b commit 8a24c79
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ repos:
- id: black
language_version: python3
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.0.285
rev: v0.0.286
hooks:
- id: ruff
args: ["--fix"]
Expand Down
2 changes: 1 addition & 1 deletion src/scanpydoc/definition_list_typed_field.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def setup(app: Sphinx) -> dict[str, Any]:
napoleon_requested = "sphinx.ext.napoleon" in app.config.extensions
napoleon_loaded = next(
(True for ft in PyObject.doc_field_types if ft.name == "keyword"),
False, # noqa: FBT003
False,
)
if napoleon_requested and not napoleon_loaded:
msg = f"Please load sphinx.ext.napoleon before {__name__}"
Expand Down

0 comments on commit 8a24c79

Please sign in to comment.