Skip to content

Commit 307d00b

Browse files
committed
Apply ruff autofixes
1 parent de6c4b0 commit 307d00b

File tree

6 files changed

+14
-15
lines changed

6 files changed

+14
-15
lines changed

_custom_build/backend.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import sys
22

3-
from setuptools.build_meta import * # noqa: F401, F403
3+
from setuptools.build_meta import * # noqa: F403
44
from setuptools.build_meta import build_wheel
55

66
backend_class = build_wheel.__self__.__class__

docs/conf.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -318,14 +318,14 @@ def setup(app):
318318

319319

320320
linkcheck_allowed_redirects = {
321-
r"https://www.bestpractices.dev/projects/6331": r"https://www.bestpractices.dev/en/.*", # noqa: E501
322-
r"https://badges.gitter.im/python-pillow/Pillow.svg": r"https://badges.gitter.im/repo.svg", # noqa: E501
323-
r"https://gitter.im/python-pillow/Pillow?.*": r"https://app.gitter.im/#/room/#python-pillow_Pillow:gitter.im?.*", # noqa: E501
324-
r"https://pillow.readthedocs.io/?badge=latest": r"https://pillow.readthedocs.io/en/stable/?badge=latest", # noqa: E501
321+
r"https://www.bestpractices.dev/projects/6331": r"https://www.bestpractices.dev/en/.*",
322+
r"https://badges.gitter.im/python-pillow/Pillow.svg": r"https://badges.gitter.im/repo.svg",
323+
r"https://gitter.im/python-pillow/Pillow?.*": r"https://app.gitter.im/#/room/#python-pillow_Pillow:gitter.im?.*",
324+
r"https://pillow.readthedocs.io/?badge=latest": r"https://pillow.readthedocs.io/en/stable/?badge=latest",
325325
r"https://pillow.readthedocs.io": r"https://pillow.readthedocs.io/en/stable/",
326-
r"https://tidelift.com/badges/package/pypi/Pillow?.*": r"https://img.shields.io/badge/.*", # noqa: E501
327-
r"https://zenodo.org/badge/17549/python-pillow/Pillow.svg": r"https://zenodo.org/badge/doi/[\.0-9]+/zenodo.[0-9]+.svg", # noqa: E501
328-
r"https://zenodo.org/badge/latestdoi/17549/python-pillow/Pillow": r"https://zenodo.org/record/[0-9]+", # noqa: E501
326+
r"https://tidelift.com/badges/package/pypi/Pillow?.*": r"https://img.shields.io/badge/.*",
327+
r"https://zenodo.org/badge/17549/python-pillow/Pillow.svg": r"https://zenodo.org/badge/doi/[\.0-9]+/zenodo.[0-9]+.svg",
328+
r"https://zenodo.org/badge/latestdoi/17549/python-pillow/Pillow": r"https://zenodo.org/record/[0-9]+",
329329
}
330330

331331
# sphinx.ext.extlinks

src/PIL/ImageFilter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ class UnsharpMask(MultibandFilter):
222222
223223
.. _digital unsharp masking: https://en.wikipedia.org/wiki/Unsharp_masking#Digital_unsharp_masking
224224
225-
""" # noqa: E501
225+
"""
226226

227227
name = "UnsharpMask"
228228

src/PIL/IptcImagePlugin.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,9 @@
1818
import tempfile
1919

2020
from . import Image, ImageFile
21-
from ._binary import i8
21+
from ._binary import i8, o8
2222
from ._binary import i16be as i16
2323
from ._binary import i32be as i32
24-
from ._binary import o8
2524

2625
COMPRESSION = {1: "raw", 5: "jpeg"}
2726

src/PIL/PyAccess.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ def set_pixel(self, x, y, color):
244244
except TypeError:
245245
color = min(color[0], 65535)
246246

247-
pixel.l = color & 0xFF # noqa: E741
247+
pixel.l = color & 0xFF
248248
pixel.r = color >> 8
249249

250250

@@ -265,7 +265,7 @@ def set_pixel(self, x, y, color):
265265
except Exception:
266266
color = min(color[0], 65535)
267267

268-
pixel.l = color >> 8 # noqa: E741
268+
pixel.l = color >> 8
269269
pixel.r = color & 0xFF
270270

271271

winbuild/build_prepare.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ def cmd_msbuild(
239239
"libs": ["*.lib"],
240240
},
241241
"freetype": {
242-
"url": "https://download.savannah.gnu.org/releases/freetype/freetype-2.13.2.tar.gz", # noqa: E501
242+
"url": "https://download.savannah.gnu.org/releases/freetype/freetype-2.13.2.tar.gz",
243243
"filename": "freetype-2.13.2.tar.gz",
244244
"dir": "freetype-2.13.2",
245245
"license": ["LICENSE.TXT", r"docs\FTL.TXT", r"docs\GPLv2.TXT"],
@@ -321,7 +321,7 @@ def cmd_msbuild(
321321
},
322322
"libimagequant": {
323323
# commit: Merge branch 'master' into msvc (matches 2.17.0 tag)
324-
"url": "https://github.com/ImageOptim/libimagequant/archive/e4c1334be0eff290af5e2b4155057c2953a313ab.zip", # noqa: E501
324+
"url": "https://github.com/ImageOptim/libimagequant/archive/e4c1334be0eff290af5e2b4155057c2953a313ab.zip",
325325
"filename": "libimagequant-e4c1334be0eff290af5e2b4155057c2953a313ab.zip",
326326
"dir": "libimagequant-e4c1334be0eff290af5e2b4155057c2953a313ab",
327327
"license": "COPYRIGHT",

0 commit comments

Comments
 (0)