From d315db46acd25a9b7e9e3d48cd2971d1f3dd8446 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 27 Jan 2025 16:30:34 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/biocframe/BiocFrame.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/biocframe/BiocFrame.py b/src/biocframe/BiocFrame.py index 35c0287..28e3d74 100644 --- a/src/biocframe/BiocFrame.py +++ b/src/biocframe/BiocFrame.py @@ -43,14 +43,13 @@ def _validate_rows( if len(incorrect_len_keys) > 0: raise ValueError( - "All columns in ``data`` must be the same " - f"length, these columns do not: {', '.join(incorrect_len_keys)}." + f"All columns in ``data`` must be the same length, these columns do not: {', '.join(incorrect_len_keys)}." ) if row_names is not None: if len(row_names) != number_of_rows: raise ValueError( - "Length of `row_names` and `number_of_rows` do not match, " f"{len(row_names)} != {number_of_rows}" + f"Length of `row_names` and `number_of_rows` do not match, {len(row_names)} != {number_of_rows}" ) if any(x is None for x in row_names): raise ValueError("`row_names` cannot contain None values.")