From 78d15bdc09bf28bc351620b3d472ce7d0b1e645f Mon Sep 17 00:00:00 2001 From: Frostbyte <71291438+Frostbyte0x70@users.noreply.github.com> Date: Mon, 27 Jul 2026 21:45:00 +0200 Subject: [PATCH 1/3] Update build runners --- .github/workflows/build-test-publish.yml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build-test-publish.yml b/.github/workflows/build-test-publish.yml index 093b2a6..65ebb8d 100644 --- a/.github/workflows/build-test-publish.yml +++ b/.github/workflows/build-test-publish.yml @@ -65,13 +65,11 @@ jobs: include: - os: ubuntu-24.04 arch: x86_64 - - os: macos-13 - arch: x86_64 - os: macos-14 arch: arm64 - - os: windows-2019 + - os: windows-2022 arch: x86 - - os: windows-2019 + - os: windows-2022 arch: AMD64 steps: - name: Checkout @@ -85,7 +83,7 @@ jobs: run: | perl -i -pe "s/version\s*=\s*\"(.*?)(\.rc.*|\.a.*|\.post.*)?\"/version=\"\1.dev0+${GITHUB_SHA::8}\"/" pyproject.toml - name: Note version - if: matrix.os != 'windows-2019' + if: matrix.os != 'windows-2022' shell: bash run: | python3 -m venv .yq-venv @@ -93,7 +91,7 @@ jobs: pip install yq echo "PACKAGE_VERSION=$(tomlq '.project.version' pyproject.toml -r)" >> $GITHUB_ENV - name: Note version (Windows) - if: matrix.os == 'windows-2019' + if: matrix.os == 'windows-2022' run: | pipx install yq $env:PACKAGE_VERSION = tomlq.exe '.project.version' pyproject.toml -r @@ -110,12 +108,12 @@ jobs: python-version: "3.12" - name: Download GNU Tar uses: suisei-cn/actions-download-file@v1.6.0 - if: "matrix.os == 'windows-2019'" + if: "matrix.os == 'windows-2022'" with: url: https://skytemple.org/build_deps/tar.exe target: "C:\\tarout" - name: Prepend GNU Tar to Path - if: "matrix.os == 'windows-2019'" + if: "matrix.os == 'windows-2022'" shell: powershell run: echo "C:\tarout" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append From d7b5b53333938600d46e508c6d25e8efb9d27059 Mon Sep 17 00:00:00 2001 From: Frostbyte <71291438+Frostbyte0x70@users.noreply.github.com> Date: Mon, 27 Jul 2026 22:33:13 +0200 Subject: [PATCH 2/3] Fix formatting (1/2) --- tilequant/image_converter.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tilequant/image_converter.py b/tilequant/image_converter.py index d0ff5fb..7781605 100644 --- a/tilequant/image_converter.py +++ b/tilequant/image_converter.py @@ -73,12 +73,12 @@ def __init__( :param tile_height: Height of a tile :param dl_name: Path to the DLL or SO file for Tilequant, if not given, will auto-detect. """ - assert ( - img.width % tile_width == 0 - ), f"The image width must be divisible by {tile_width}" - assert ( - img.height % tile_height == 0 - ), f"The image height must be divisible by {tile_height}" + assert img.width % tile_width == 0, ( + f"The image width must be divisible by {tile_width}" + ) + assert img.height % tile_height == 0, ( + f"The image height must be divisible by {tile_height}" + ) self._img = img.convert("RGBA").convert("RGBa") self._transparent_color: tuple[int, int, int, int] | None = None if transparent_color is not None: From 299d057d79fc58abb256ce6de20da48e1dc47254 Mon Sep 17 00:00:00 2001 From: Frostbyte <71291438+Frostbyte0x70@users.noreply.github.com> Date: Mon, 27 Jul 2026 22:34:29 +0200 Subject: [PATCH 3/3] Fix formatting (2/2) --- tilequant/legacy/image_converter.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tilequant/legacy/image_converter.py b/tilequant/legacy/image_converter.py index 75cbf3f..798ec91 100644 --- a/tilequant/legacy/image_converter.py +++ b/tilequant/legacy/image_converter.py @@ -53,12 +53,12 @@ def __init__( :param transparent_color: A single color value that should be treated as transparent, when doing the conversion with transparency enabled. """ - assert ( - img.width % tile_width == 0 - ), f"The image width must be divisible by {tile_width}" - assert ( - img.height % tile_height == 0 - ), f"The image height must be divisible by {tile_height}" + assert img.width % tile_width == 0, ( + f"The image width must be divisible by {tile_width}" + ) + assert img.height % tile_height == 0, ( + f"The image height must be divisible by {tile_height}" + ) self._img = img.convert("RGB") self._tile_width = tile_width self._tile_height = tile_height