diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index fe2a468..8df4228 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -20,7 +20,7 @@ repos: args: ['--fix=lf'] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.8.4 + rev: v0.9.1 hooks: - id: ruff args: [--fix, --unsafe-fixes, --exit-non-zero-on-fix] @@ -32,7 +32,7 @@ repos: - id: check-json5 - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.14.0 + rev: v1.14.1 hooks: - id: mypy additional_dependencies: diff --git a/src/labelle/lib/devices/dymo_labeler.py b/src/labelle/lib/devices/dymo_labeler.py index e57bcb1..115d220 100755 --- a/src/labelle/lib/devices/dymo_labeler.py +++ b/src/labelle/lib/devices/dymo_labeler.py @@ -326,8 +326,7 @@ def print( stream_row_length = int(math.ceil(bitmap.height / 8)) if len(stream) // stream_row_length != bitmap.width: raise RuntimeError( - "An internal problem was encountered while processing the " - "label bitmap!" + "An internal problem was encountered while processing the label bitmap!" ) label_rows: list[bytes] = [ stream[i : i + stream_row_length] diff --git a/src/labelle/lib/devices/usb_device.py b/src/labelle/lib/devices/usb_device.py index 2770091..c17a988 100644 --- a/src/labelle/lib/devices/usb_device.py +++ b/src/labelle/lib/devices/usb_device.py @@ -246,9 +246,7 @@ def _setup(self): ) self._dev.detach_kernel_driver(intf.bInterfaceNumber) except NotImplementedError: - LOG.debug( - f"Kernel driver detaching not necessary on " f"{platform.system()}." - ) + LOG.debug(f"Kernel driver detaching not necessary on {platform.system()}.") devout = usb.util.find_descriptor( intf, custom_match=(