Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#141)
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 Mar 14, 2024
1 parent 340c998 commit 7664dad
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ repos:
hooks:
- id: trailing-whitespace
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.2.2
rev: v0.3.2
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
Expand All @@ -17,7 +17,7 @@ repos:
- [email protected]
- [email protected]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.8.0
rev: v1.9.0
hooks:
- id: mypy
additional_dependencies:
Expand Down
1 change: 1 addition & 0 deletions src/scanpydoc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
This module is also an extension itself which simply sets up all included extensions.
"""

from __future__ import annotations

from typing import TYPE_CHECKING, Any, TypeVar
Expand Down
1 change: 1 addition & 0 deletions src/scanpydoc/rtd_github_links/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
.. _autosummary templates: \
http://www.sphinx-doc.org/en/master/usage/extensions/autosummary.html#customizing-templates
"""

from __future__ import annotations

import sys
Expand Down
3 changes: 1 addition & 2 deletions tests/test_elegant_typehints.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@
class ProcessDoc(Protocol): # noqa: D101
def __call__( # noqa: D102
self, fn: Callable[..., Any], *, run_napoleon: bool = False
) -> list[str]:
...
) -> list[str]: ...


NONE_RTYPE = ":rtype: :sphinx_autodoc_typehints_type:`\\:py\\:obj\\:\\`None\\``"
Expand Down
1 change: 1 addition & 0 deletions tests/test_rtd_github_links.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test rtd_github_links subextension."""

from __future__ import annotations

import re
Expand Down

0 comments on commit 7664dad

Please sign in to comment.