diff --git a/Tests/test_file_webp.py b/Tests/test_file_webp.py index ab244f898..bdec8273d 100644 --- a/Tests/test_file_webp.py +++ b/Tests/test_file_webp.py @@ -15,8 +15,10 @@ class TestUnsupportedWebp(PillowTestCase): WebPImagePlugin.SUPPORTED = False file_path = "Tests/images/hopper.webp" - self.assert_warning(UserWarning, - lambda: self.assertRaises(IOError, Image.open, file_path)) + self.assert_warning( + UserWarning, + lambda: self.assertRaises(IOError, Image.open, file_path) + ) if HAVE_WEBP: WebPImagePlugin.SUPPORTED = True diff --git a/Tests/test_imagecms.py b/Tests/test_imagecms.py index 5f7e78167..b68692990 100644 --- a/Tests/test_imagecms.py +++ b/Tests/test_imagecms.py @@ -402,7 +402,7 @@ class TestImageCms(PillowTestCase): def create_test_image(): # set up test image with something interesting in the tested aux # channel. - nine_grid_deltas = [ + nine_grid_deltas = [ # noqa: E128 (-1, -1), (-1, 0), (-1, 1), (0, -1), (0, 0), (0, 1), (1, -1), (1, 0), (1, 1), diff --git a/src/PIL/JpegImagePlugin.py b/src/PIL/JpegImagePlugin.py index f2068189f..6090d252f 100644 --- a/src/PIL/JpegImagePlugin.py +++ b/src/PIL/JpegImagePlugin.py @@ -578,7 +578,7 @@ RAWMODE = { "YCbCr": "YCbCr", } -zigzag_index = (0, 1, 5, 6, 14, 15, 27, 28, +zigzag_index = (0, 1, 5, 6, 14, 15, 27, 28, # noqa: E128 2, 4, 7, 13, 16, 26, 29, 42, 3, 8, 12, 17, 25, 30, 41, 43, 9, 11, 18, 24, 31, 40, 44, 53, diff --git a/src/PIL/JpegPresets.py b/src/PIL/JpegPresets.py index 5f01f0d2d..75d61223e 100644 --- a/src/PIL/JpegPresets.py +++ b/src/PIL/JpegPresets.py @@ -66,7 +66,7 @@ Libjpeg ref.: https://web.archive.org/web/20120328125543/http://www.jpegcameras. """ -presets = { +presets = { # noqa: E128 'web_low': {'subsampling': 2, # "4:2:0" 'quantization': [ [20, 16, 25, 39, 50, 46, 62, 68,