Skip to content

Commit 5333d45

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent e077e6a commit 5333d45

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

tests/pl/test_render_labels.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,6 @@ def test_plot_can_handle_dropping_small_labels_after_rasterize_categorical(self,
299299
sdata_blobs.pl.render_labels("blobs_labels_large", color="category", table_name="table").pl.show()
300300

301301
def test_plot_respects_custom_colors_from_uns(self, sdata_blobs: SpatialData):
302-
303302
labels_name = "blobs_labels"
304303
instances = get_element_instances(sdata_blobs[labels_name])
305304
n_obs = len(instances)
@@ -319,7 +318,7 @@ def test_plot_respects_custom_colors_from_uns(self, sdata_blobs: SpatialData):
319318
)
320319
sdata_blobs["other_table"] = table
321320
sdata_blobs["other_table"].obs["category"] = sdata_blobs["other_table"].obs["category"].astype("category")
322-
sdata_blobs["other_table"].uns["category_colors"] = ["#800080", "#008000", "#FFFF00"] #purple, green ,yellow
321+
sdata_blobs["other_table"].uns["category_colors"] = ["#800080", "#008000", "#FFFF00"] # purple, green ,yellow
323322

324323
sdata_blobs.pl.render_labels("blobs_labels", color="category").pl.show()
325324

tests/pl/test_render_shapes.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,6 @@ def test_warns_when_table_does_not_annotate_element(sdata_blobs: SpatialData):
585585
)
586586

587587
def test_plot_respects_custom_colors_from_uns(self, sdata_blobs: SpatialData):
588-
589588
labels_name = "blobs_labels"
590589
instances = get_element_instances(sdata_blobs[labels_name])
591590
n_obs = len(instances)
@@ -605,6 +604,6 @@ def test_plot_respects_custom_colors_from_uns(self, sdata_blobs: SpatialData):
605604
)
606605
sdata_blobs["other_table"] = table
607606
sdata_blobs["other_table"].obs["category"] = sdata_blobs["other_table"].obs["category"].astype("category")
608-
sdata_blobs["other_table"].uns["category_colors"] = ["#800080", "#008000", "#FFFF00"] #purple, green ,yellow
607+
sdata_blobs["other_table"].uns["category_colors"] = ["#800080", "#008000", "#FFFF00"] # purple, green ,yellow
609608

610-
sdata_blobs.pl.render_labels("blobs_labels", color="category").pl.show()
609+
sdata_blobs.pl.render_labels("blobs_labels", color="category").pl.show()

0 commit comments

Comments
 (0)