diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c6be3c25..ce25f8ed 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -11,7 +11,7 @@ repos: hooks: - id: prettier - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.3.5 + rev: v0.4.2 hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix, --unsafe-fixes] @@ -27,7 +27,7 @@ repos: - id: trailing-whitespace - id: check-case-conflict - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.9.0 + rev: v1.10.0 hooks: - id: mypy args: [--no-strict-optional, --ignore-missing-imports] diff --git a/pertpy/tools/_coda/_base_coda.py b/pertpy/tools/_coda/_base_coda.py index 9271c6f9..5a2600cb 100644 --- a/pertpy/tools/_coda/_base_coda.py +++ b/pertpy/tools/_coda/_base_coda.py @@ -849,10 +849,10 @@ def summary(self, data: AnnData | MuData, extended: bool = False, modality_key: table.add_column("Name", justify="left", style="cyan") table.add_column("Value", justify="left") table.add_row("Data", "Data: %d samples, %d cell types" % data_dims) - table.add_row("Reference cell type", "%s" % str(sample_adata.uns["scCODA_params"]["reference_cell_type"])) - table.add_row("Formula", "%s" % sample_adata.uns["scCODA_params"]["formula"]) + table.add_row("Reference cell type", "{}".format(str(sample_adata.uns["scCODA_params"]["reference_cell_type"]))) + table.add_row("Formula", "{}".format(sample_adata.uns["scCODA_params"]["formula"])) if extended: - table.add_row("Reference index", "%s" % str(sample_adata.uns["scCODA_params"]["reference_index"])) + table.add_row("Reference index", "{}".format(str(sample_adata.uns["scCODA_params"]["reference_index"]))) if select_type == "spikeslab": table.add_row( "Spike-and-slab threshold",