Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#140)
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.5.4 → v0.9.1](astral-sh/ruff-pre-commit@v0.5.4...v0.9.1)
- [github.com/pre-commit/pre-commit-hooks: v4.6.0 → v5.0.0](pre-commit/pre-commit-hooks@v4.6.0...v5.0.0)

* [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>
Co-authored-by: Gregor Sturm <mail@gregor-sturm.de>
  • Loading branch information
pre-commit-ci[bot] and grst authored Jan 17, 2025
1 parent 28d1eee commit 5a293a5
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ fail_fast: false
default_language_version:
python: python3
default_stages:
- commit
- push
- pre-commit
- pre-push
minimum_pre_commit_version: 2.16.0
repos:
- repo: https://github.com/pre-commit/mirrors-prettier
Expand All @@ -13,15 +13,15 @@ repos:
# doesn't work in combination with jupytext hook yet. See https://github.com/mwouts/jupytext/issues/580
exclude: "docs/notebooks/.*\\.md"
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.4
rev: v0.9.1
hooks:
- id: ruff
types_or: [python, pyi, jupyter]
args: [--fix, --exit-non-zero-on-fix]
- id: ruff-format
types_or: [python, pyi, jupyter]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
rev: v5.0.0
hooks:
- id: detect-private-key
- id: check-ast
Expand Down
2 changes: 1 addition & 1 deletion docs/extensions/typed_returns.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
def _process_return(lines: Iterable[str]) -> Generator[str, None, None]:
for line in lines:
if m := re.fullmatch(r"(?P<param>\w+)\s+:\s+(?P<type>[\w.]+)", line):
yield f'-{m["param"]} (:class:`~{m["type"]}`)'
yield f"-{m['param']} (:class:`~{m['type']}`)"
else:
yield line

Expand Down
2 changes: 1 addition & 1 deletion src/infercnvpy/_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def _choose_mtx_rep(adata, use_raw=False, layer=None):
is_layer = layer is not None
if use_raw and is_layer:
raise ValueError(
"Cannot use expression from both layer and raw. You provided:" f"'use_raw={use_raw}' and 'layer={layer}'"
f"Cannot use expression from both layer and raw. You provided:'use_raw={use_raw}' and 'layer={layer}'"
)
if is_layer:
return adata.layers[layer]
Expand Down
2 changes: 1 addition & 1 deletion src/infercnvpy/tl/_copykat.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def copykat(
importr("stringr")
except ImportError:
raise ImportError(
"copyKAT requires a valid R installation with the following packages: " "copykat, stringr"
"copyKAT requires a valid R installation with the following packages: copykat, stringr"
) from None

logging.info("Preparing R objects")
Expand Down

0 comments on commit 5a293a5

Please sign in to comment.