From f3c1f08f5bda6fc39bd4b2beb2c3151c172f3562 Mon Sep 17 00:00:00 2001 From: Hugo Date: Sun, 11 Nov 2018 22:50:12 +0200 Subject: [PATCH] noqa the few remaining long and hard-to-split lines --- src/PIL/ImageFilter.py | 2 +- src/PIL/TiffImagePlugin.py | 3 ++- winbuild/build.py | 2 +- winbuild/build_dep.py | 16 ++++++++-------- winbuild/config.py | 2 +- 5 files changed, 13 insertions(+), 12 deletions(-) diff --git a/src/PIL/ImageFilter.py b/src/PIL/ImageFilter.py index ebee3fc1a..271f93b0a 100644 --- a/src/PIL/ImageFilter.py +++ b/src/PIL/ImageFilter.py @@ -197,7 +197,7 @@ class UnsharpMask(MultibandFilter): .. _digital unsharp masking: https://en.wikipedia.org/wiki/Unsharp_masking#Digital_unsharp_masking - """ + """ # noqa: E501 name = "UnsharpMask" def __init__(self, radius=2, percent=150, threshold=3): diff --git a/src/PIL/TiffImagePlugin.py b/src/PIL/TiffImagePlugin.py index 5059a1324..7859de531 100644 --- a/src/PIL/TiffImagePlugin.py +++ b/src/PIL/TiffImagePlugin.py @@ -594,7 +594,8 @@ class ImageFileDirectory_v2(MutableMapping): except ValueError: # We've got a builtin tag with 1 expected entry warnings.warn( - "Metadata Warning, tag %s had too many entries: %s, expected 1" % ( + "Metadata Warning, tag %s had too many entries: " + "%s, expected 1" % ( tag, len(values))) dest[tag] = values[0] diff --git a/winbuild/build.py b/winbuild/build.py index 9e8d442c1..86c7f818b 100755 --- a/winbuild/build.py +++ b/winbuild/build.py @@ -112,7 +112,7 @@ call %(python_path)s\%(executable)s setup.py %(imaging_libs)s %%BLDOPT%% endlocal endlocal -""" +""" # noqa: E501 return script % args diff --git a/winbuild/build_dep.py b/winbuild/build_dep.py index 51a4e821a..5cd5cb14d 100644 --- a/winbuild/build_dep.py +++ b/winbuild/build_dep.py @@ -104,7 +104,7 @@ def setup_compiler(compiler): return r"""setlocal EnableDelayedExpansion call "%%ProgramFiles%%\Microsoft SDKs\Windows\%(env_version)s\Bin\SetEnv.Cmd" /Release %(env_flags)s set INCLIB=%%INCLIB%%\%(inc_dir)s -""" % compiler +""" % compiler # noqa: E501 def end_compiler(): @@ -202,7 +202,7 @@ rd /S /Q %%FREETYPE%%\objs xcopy /Y /E /Q %%FREETYPE%%\include %%INCLIB%% copy /Y /B %%FREETYPE%%\objs\vc%(vc_version)s\%(platform)s\*.lib %%INCLIB%%\freetype.lib endlocal -""" % compiler +""" % compiler # noqa: E501 def msbuild_freetype_70(compiler): @@ -217,7 +217,7 @@ xcopy /Y /E /Q %%FREETYPE%%\include %%INCLIB%% xcopy /Y /E /Q %%FREETYPE%%\objs\win32\vc%(vc_version)s %%INCLIB%% copy /Y /B %%FREETYPE%%\objs\win32\vc%(vc_version)s\*.lib %%INCLIB%%\freetype.lib endlocal -""" % compiler +""" % compiler # noqa: E501 def build_lcms2(compiler): @@ -237,12 +237,12 @@ rem Build lcms2 setlocal rd /S /Q %%LCMS%%\Lib rd /S /Q %%LCMS%%\Projects\VC%(vc_version)s\Release -%%MSBUILD%% %%LCMS%%\Projects\VC%(vc_version)s\lcms2.sln /t:Clean /p:Configuration="Release" /p:Platform=Win32 /m +%%MSBUILD%% %%LCMS%%\Projects\VC%(vc_version)s\lcms2.sln /t:Clean /p:Configuration="Release" /p:Platform=Win32 /m %%MSBUILD%% %%LCMS%%\Projects\VC%(vc_version)s\lcms2.sln /t:lcms2_static /p:Configuration="Release" /p:Platform=Win32 /m xcopy /Y /E /Q %%LCMS%%\include %%INCLIB%% copy /Y /B %%LCMS%%\Projects\VC%(vc_version)s\Release\*.lib %%INCLIB%% endlocal -""" % compiler +""" % compiler # noqa: E501 def build_lcms_71(compiler): @@ -251,12 +251,12 @@ rem Build lcms2 setlocal rd /S /Q %%LCMS%%\Lib rd /S /Q %%LCMS%%\Projects\VC%(vc_version)s\Release -%%MSBUILD%% %%LCMS%%\Projects\VC%(vc_version)s\lcms2.sln /t:Clean /p:Configuration="Release" /p:Platform=%(platform)s /m -%%MSBUILD%% %%LCMS%%\Projects\VC%(vc_version)s\lcms2.sln /t:lcms2_static /p:Configuration="Release" /p:Platform=%(platform)s /m +%%MSBUILD%% %%LCMS%%\Projects\VC%(vc_version)s\lcms2.sln /t:Clean /p:Configuration="Release" /p:Platform=%(platform)s /m +%%MSBUILD%% %%LCMS%%\Projects\VC%(vc_version)s\lcms2.sln /t:lcms2_static /p:Configuration="Release" /p:Platform=%(platform)s /m xcopy /Y /E /Q %%LCMS%%\include %%INCLIB%% copy /Y /B %%LCMS%%\Lib\MS\*.lib %%INCLIB%% endlocal -""" % compiler +""" % compiler # noqa: E501 def add_compiler(compiler, bit): diff --git a/winbuild/config.py b/winbuild/config.py index e81ed74f4..8edb7ea1a 100644 --- a/winbuild/config.py +++ b/winbuild/config.py @@ -34,7 +34,7 @@ libs = { 'dir': 'tiff-4.0.10', }, 'freetype': { - 'url': 'https://download.savannah.gnu.org/releases/freetype/freetype-2.9.1.tar.gz', + 'url': 'https://download.savannah.gnu.org/releases/freetype/freetype-2.9.1.tar.gz', # noqa: E501 'filename': PILLOW_DEPENDS_DIR + 'freetype-2.9.1.tar.gz', 'dir': 'freetype-2.9.1', },