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 Oct 31, 2023
1 parent ba7ff4a commit 9a2aa66
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 @@ -22,7 +22,6 @@
__license__ = "MIT"



class BiocFrameIter:
"""An iterator to a :py:class:`~biocframe.BiocFrame.BiocFrame` object.
Expand Down Expand Up @@ -265,7 +264,7 @@ def __str__(self) -> str:
minwidth = max(40, len(header[0]), len(header[1]))
for i, y in enumerate(showed):
if len(y) > minwidth:
showed[i] = y[:minwidth - 3] + "..."
showed[i] = y[: minwidth - 3] + "..."
if insert_ellipsis:
showed = showed[:3] + ["..."] + showed[3:]
columns.append(header + showed)
Expand Down Expand Up @@ -1099,7 +1098,7 @@ def _show_as_cell_BiocFrame(x: BiocFrame, indices: Sequence[int]) -> List[str]:
constructs = []
for i in indices:
constructs.append([])

for k in x._column_names:
col = show_as_cell(x._data[k], indices)
for i, v in enumerate(col):
Expand Down

0 comments on commit 9a2aa66

Please sign in to comment.