Skip to content

Commit

Permalink
Apply Ruff format
Browse files Browse the repository at this point in the history
  • Loading branch information
akx committed Oct 1, 2024
1 parent 88e4b37 commit c8fc6d7
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
4 changes: 1 addition & 3 deletions labelme/utils/shape.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,7 @@ def masks_to_bboxes(masks):
if masks.ndim != 3:
raise ValueError(f"masks.ndim must be 3, but it is {masks.ndim}")
if masks.dtype != bool:
raise ValueError(
f"masks.dtype must be bool type, but it is {masks.dtype}"
)
raise ValueError(f"masks.dtype must be bool type, but it is {masks.dtype}")
bboxes = []
for mask in masks:
where = np.argwhere(mask)
Expand Down
1 change: 0 additions & 1 deletion labelme/widgets/unique_label_qlist_widget.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

import html

from qtpy import QtWidgets
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

import pytest

from labelme.widgets import LabelListWidget
Expand Down

0 comments on commit c8fc6d7

Please sign in to comment.