Skip to content

Commit

Permalink
fixing some import formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
beijbom committed Oct 3, 2023
1 parent 3cb5ca8 commit 96f227f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions tests/test_image_classification_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import numpy as np
import pytest
from conftest import get_test_user, make_random_image

from nyckel import (
ClassificationAnnotation,
ClassificationLabel,
Expand Down
3 changes: 2 additions & 1 deletion tests/test_image_decoder.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import os
from io import BytesIO

from nyckel.functions.classification.image_classification import ImageDecoder, ImageEncoder
from PIL import Image

from nyckel.functions.classification.image_classification import ImageDecoder, ImageEncoder

image_url = "https://www.nyckel.com/blog/images/taimi-case-study-header-image.png"

Check failure on line 8 in tests/test_image_decoder.py

View workflow job for this annotation

GitHub Actions / build (3.8)

Ruff (I001)

tests/test_image_decoder.py:1:1: I001 Import block is un-sorted or un-formatted

Check failure on line 8 in tests/test_image_decoder.py

View workflow job for this annotation

GitHub Actions / build (3.9)

Ruff (I001)

tests/test_image_decoder.py:1:1: I001 Import block is un-sorted or un-formatted

Check failure on line 8 in tests/test_image_decoder.py

View workflow job for this annotation

GitHub Actions / build (3.11)

Ruff (I001)

tests/test_image_decoder.py:1:1: I001 Import block is un-sorted or un-formatted

image_base64 = ImageEncoder().image_to_base64(Image.new(mode="RGB", size=(40, 40)))
Expand Down

0 comments on commit 96f227f

Please sign in to comment.