Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#3270)
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 Oct 1, 2024
1 parent 2e208a3 commit be99b23
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
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.7
rev: v0.6.8
hooks:
- id: ruff
types_or: [python, pyi, jupyter]
Expand Down
2 changes: 1 addition & 1 deletion src/scanpy/plotting/_anndata.py
Original file line number Diff line number Diff line change
Expand Up @@ -826,7 +826,7 @@ def violin(

if groupby is not None:
obs_df = get.obs_df(adata, keys=[groupby] + keys, layer=layer, use_raw=use_raw)
if kwds.get("palette", None) is None:
if kwds.get("palette") is None:
if not isinstance(adata.obs[groupby].dtype, CategoricalDtype):
raise ValueError(
f"The column `adata.obs[{groupby!r}]` needs to be categorical, "
Expand Down

0 comments on commit be99b23

Please sign in to comment.