Skip to content

Commit 5f0fa32

Browse files
committed
Run pre-commit on all
1 parent d350d3e commit 5f0fa32

7 files changed

Lines changed: 9 additions & 7 deletions

File tree

src/napari_deeplabcut/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@
4040
# FIXME: Circumvent the need to access window.qt_viewer
4141
warnings.filterwarnings("ignore", category=FutureWarning)
4242

43-
import re
43+
import re # noqa: E402
44+
4445
# Suppress RuntimeWarnings caused by NaN values in dataframe
4546
# (encountered during model-predicted labels refinement stage)
4647
warnings.filterwarnings(
@@ -49,6 +50,7 @@
4950
message=re.escape("invalid value encountered in cast"),
5051
)
5152

53+
5254
class VispyWarningFilter(logging.Filter):
5355
def filter(self, record: logging.LogRecord) -> bool:
5456
ignore_messages = (

src/napari_deeplabcut/_tests/test_reader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ def test_lazy_imread_grayscale_and_rgba(tmp_path):
374374
gray = (np.random.rand(10, 10) * 255).astype(np.uint8)
375375
rgba = (np.random.rand(10, 10, 4) * 255).astype(np.uint8)
376376
p1, p2 = tmp_path / "g.png", tmp_path / "r.png"
377-
cv2.imwrite(str(p1), gray) # cv2 writes grayscale as-is; color images are written as BGR
377+
cv2.imwrite(str(p1), gray) # cv2 writes grayscale as-is; color images are written as BGR
378378
cv2.imwrite(str(p2), cv2.cvtColor(rgba, cv2.COLOR_RGBA2BGRA))
379379
res = _reader._lazy_imread([p1, p2], use_dask=False, stack=False)
380380
assert all(img.shape[-1] == 3 for img in res)

src/napari_deeplabcut/assets/napari_shortcuts.svg

Lines changed: 1 addition & 1 deletion
Loading

src/napari_deeplabcut/assets/superanimal_quadruped.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,4 +155,4 @@
155155
707.5655627887081,
156156
375.0788206592507
157157
]
158-
}
158+
}

src/napari_deeplabcut/assets/superanimal_topviewmouse.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,4 +107,4 @@
107107
117.41024099594408,
108108
252.35239163633167
109109
]
110-
}
110+
}

src/napari_deeplabcut/styles/dark.mplstyle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ axes.labelcolor : f0f1f2
99
axes.facecolor : none
1010
axes.edgecolor : 414851
1111
xtick.color : f0f1f2
12-
ytick.color : f0f1f2
12+
ytick.color : f0f1f2

src/napari_deeplabcut/styles/light.mplstyle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ axes.labelcolor : 3b3a39
99
axes.facecolor : none
1010
axes.edgecolor : d6d0ce
1111
xtick.color : 3b3a39
12-
ytick.color : 3b3a39
12+
ytick.color : 3b3a39

0 commit comments

Comments
 (0)