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 #140

Merged
merged 3 commits into from
Jan 17, 2025
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
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
Loading