Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#151)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/astral-sh/ruff-pre-commit: v0.4.4 → v0.4.5](astral-sh/ruff-pre-commit@v0.4.4...v0.4.5)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] authored May 31, 2024
1 parent 940a9de commit 5ff831c
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 @@ -4,7 +4,7 @@ repos:
hooks:
- id: trailing-whitespace
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.4
rev: v0.4.5
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
Expand Down
2 changes: 1 addition & 1 deletion src/scanpydoc/rtd_github_links/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def _get_annotations(obj: _SourceObjectType) -> dict[str, Any]:
return {}


def _get_obj_module(qualname: str) -> tuple[Any, ModuleType]: # noqa: PLR0912
def _get_obj_module(qualname: str) -> tuple[Any, ModuleType]:
"""Get a module/class/attribute and its original module by qualname.
Returns `None` as `obj` if it’s an annotated field without value.
Expand Down

0 comments on commit 5ff831c

Please sign in to comment.