Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#317)
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] authored Jan 13, 2025
1 parent 284d9f7 commit 5eaecc5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.4
rev: v0.9.1
hooks:
- id: ruff
types_or: [python, pyi, jupyter]
Expand Down
8 changes: 4 additions & 4 deletions src/rapids_singlecell/preprocessing/_simple.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def filter_genes(

if verbose:
print(
f"filtered out {adata.var.shape[0]-thr.sum()} genes based on {qc_var}"
f"filtered out {adata.var.shape[0] - thr.sum()} genes based on {qc_var}"
)

adata._inplace_subset_var(thr)
Expand All @@ -122,7 +122,7 @@ def filter_genes(
thr = adata.var[qc_var] <= max_count
if verbose:
print(
f"filtered out {adata.var.shape[0]-thr.sum()} genes based on {qc_var}"
f"filtered out {adata.var.shape[0] - thr.sum()} genes based on {qc_var}"
)

adata._inplace_subset_var(thr)
Expand Down Expand Up @@ -173,7 +173,7 @@ def filter_cells(
else:
print("Please specify a cutoff to filter against")
if verbose:
print(f"filtered out {adata.obs.shape[0]-inter.sum()} cells")
print(f"filtered out {adata.obs.shape[0] - inter.sum()} cells")
adata._inplace_subset_obs(inter)
elif qc_var in ["n_genes_by_counts", "total_counts"]:
if verbose:
Expand All @@ -191,7 +191,7 @@ def filter_cells(
else:
print("Please specify a cutoff to filter against")
if verbose:
print(f"filtered out {adata.obs.shape[0]-inter.sum()} cells")
print(f"filtered out {adata.obs.shape[0] - inter.sum()} cells")
adata._inplace_subset_obs(inter)
else:
print("Please check qc_var.")
Expand Down
2 changes: 1 addition & 1 deletion src/rapids_singlecell/tools/_draw_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def draw_graph(
init_coords[subset] = group_pos
else:
raise ValueError(
"Plot PAGA first, so that adata.uns['paga']" "with key 'pos'."
"Plot PAGA first, so that adata.uns['paga']with key 'pos'."
)

else:
Expand Down

0 comments on commit 5eaecc5

Please sign in to comment.