Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ target = ["test", "roboflow"]
tests = ["B201", "B301"]

[tool.ruff]
target-version = "py38"
target-version = "py39"
line-length = 120

[tool.ruff.lint]
Expand Down Expand Up @@ -45,6 +45,7 @@ ignore = [
"T",
"TD",
"TRY",
"UP",
]

# Exclude a variety of commonly ignored directories.
Expand Down Expand Up @@ -100,7 +101,7 @@ banned-module-level-imports = [
]

[tool.mypy]
python_version = "3.8"
python_version = "3.9"
exclude = ["^build/"]

[[tool.mypy.overrides]]
Expand All @@ -111,9 +112,6 @@ module = [
"IPython.display.*",
# ipywidgets is an optional dependency
"ipywidgets.*",
# matplotlib typing is not available for Python 3.8
# remove this when we stop supporting Python 3.8
"matplotlib.*",
"requests_toolbelt.*",
"torch.*",
"ultralytics.*",
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ numpy>=1.18.5
opencv-python-headless==4.10.0.84
Pillow>=7.1.2
# https://github.com/roboflow/roboflow-python/issues/390
pillow-heif<2
pi-heif<2
pillow-avif-plugin<2
python-dateutil
python-dotenv
Expand Down
2 changes: 1 addition & 1 deletion roboflow/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from roboflow.models import CLIPModel, GazeModel # noqa: F401
from roboflow.util.general import write_line

__version__ = "1.2.1"
__version__ = "1.2.3"


def check_key(api_key, model, notebook, num_retries=0):
Expand Down
4 changes: 2 additions & 2 deletions roboflow/util/image_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
import urllib

# Third-party imports
import pi_heif # type: ignore[import-untyped]
import pillow_avif # type: ignore[import-untyped]
import pillow_heif # type: ignore[import-untyped]
import requests
import yaml
from PIL import Image

pillow_heif.register_heif_opener(thumbnails=False) # Register for HEIF/HEIC
pi_heif.register_heif_opener(thumbnails=False) # Register for HEIF/HEIC
pillow_avif = pillow_avif # Reference pillow_avif to not remove import by accident


Expand Down