mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-14 13:46:57 +03:00
Run yesqa to remove redundant noqa
This commit is contained in:
parent
68ad4c0658
commit
c8e3757e72
|
@ -112,7 +112,7 @@ def test_kernel_not_enough_coefficients():
|
||||||
def test_consistency_3x3():
|
def test_consistency_3x3():
|
||||||
with Image.open("Tests/images/hopper.bmp") as source:
|
with Image.open("Tests/images/hopper.bmp") as source:
|
||||||
with Image.open("Tests/images/hopper_emboss.bmp") as reference:
|
with Image.open("Tests/images/hopper_emboss.bmp") as reference:
|
||||||
kernel = ImageFilter.Kernel( # noqa: E127
|
kernel = ImageFilter.Kernel(
|
||||||
(3, 3),
|
(3, 3),
|
||||||
# fmt: off
|
# fmt: off
|
||||||
(-1, -1, 0,
|
(-1, -1, 0,
|
||||||
|
@ -134,7 +134,7 @@ def test_consistency_3x3():
|
||||||
def test_consistency_5x5():
|
def test_consistency_5x5():
|
||||||
with Image.open("Tests/images/hopper.bmp") as source:
|
with Image.open("Tests/images/hopper.bmp") as source:
|
||||||
with Image.open("Tests/images/hopper_emboss_more.bmp") as reference:
|
with Image.open("Tests/images/hopper_emboss_more.bmp") as reference:
|
||||||
kernel = ImageFilter.Kernel( # noqa: E127
|
kernel = ImageFilter.Kernel(
|
||||||
(5, 5),
|
(5, 5),
|
||||||
# fmt: off
|
# fmt: off
|
||||||
(-1, -1, -1, -1, 0,
|
(-1, -1, -1, -1, 0,
|
||||||
|
|
|
@ -484,7 +484,7 @@ def assert_aux_channel_preserved(mode, transform_in_place, preserved_channel):
|
||||||
def create_test_image():
|
def create_test_image():
|
||||||
# set up test image with something interesting in the tested aux channel.
|
# set up test image with something interesting in the tested aux channel.
|
||||||
# fmt: off
|
# fmt: off
|
||||||
nine_grid_deltas = [ # noqa: E131
|
nine_grid_deltas = [
|
||||||
(-1, -1), (-1, 0), (-1, 1),
|
(-1, -1), (-1, 0), (-1, 1),
|
||||||
(0, -1), (0, 0), (0, 1),
|
(0, -1), (0, 0), (0, 1),
|
||||||
(1, -1), (1, 0), (1, 1),
|
(1, -1), (1, 0), (1, 1),
|
||||||
|
|
|
@ -71,7 +71,7 @@ https://web.archive.org/web/20120328125543/http://www.jpegcameras.com/libjpeg/li
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# fmt: off
|
# fmt: off
|
||||||
presets = { # noqa: E128
|
presets = {
|
||||||
'web_low': {'subsampling': 2, # "4:2:0"
|
'web_low': {'subsampling': 2, # "4:2:0"
|
||||||
'quantization': [
|
'quantization': [
|
||||||
[20, 16, 25, 39, 50, 46, 62, 68,
|
[20, 16, 25, 39, 50, 46, 62, 68,
|
||||||
|
|
|
@ -11,7 +11,7 @@ from . import Image, ImageFile
|
||||||
from ._binary import o8, o16be as o16b
|
from ._binary import o8, o16be as o16b
|
||||||
|
|
||||||
# fmt: off
|
# fmt: off
|
||||||
_Palm8BitColormapValues = ( # noqa: E131
|
_Palm8BitColormapValues = (
|
||||||
(255, 255, 255), (255, 204, 255), (255, 153, 255), (255, 102, 255),
|
(255, 255, 255), (255, 204, 255), (255, 153, 255), (255, 102, 255),
|
||||||
(255, 51, 255), (255, 0, 255), (255, 255, 204), (255, 204, 204),
|
(255, 51, 255), (255, 0, 255), (255, 255, 204), (255, 204, 204),
|
||||||
(255, 153, 204), (255, 102, 204), (255, 51, 204), (255, 0, 204),
|
(255, 153, 204), (255, 102, 204), (255, 51, 204), (255, 0, 204),
|
||||||
|
|
|
@ -154,7 +154,7 @@ deps = {
|
||||||
# "bins": [r"libtiff\*.dll"],
|
# "bins": [r"libtiff\*.dll"],
|
||||||
},
|
},
|
||||||
"libwebp": {
|
"libwebp": {
|
||||||
"url": "http://downloads.webmproject.org/releases/webp/libwebp-1.1.0.tar.gz", # noqa: E501
|
"url": "http://downloads.webmproject.org/releases/webp/libwebp-1.1.0.tar.gz",
|
||||||
"filename": "libwebp-1.1.0.tar.gz",
|
"filename": "libwebp-1.1.0.tar.gz",
|
||||||
"dir": "libwebp-1.1.0",
|
"dir": "libwebp-1.1.0",
|
||||||
"build": [
|
"build": [
|
||||||
|
|
Loading…
Reference in New Issue
Block a user