Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 20, 2025
1 parent 3a15f3d commit 75abef7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/biocframe/BiocFrame.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.")
Expand Down

0 comments on commit 75abef7

Please sign in to comment.