mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-25 17:36:18 +03:00
noqa the few remaining long and hard-to-split lines
This commit is contained in:
parent
38d06173cc
commit
f3c1f08f5b
|
@ -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):
|
||||
|
|
|
@ -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]
|
||||
|
||||
|
|
|
@ -112,7 +112,7 @@ call %(python_path)s\%(executable)s setup.py %(imaging_libs)s %%BLDOPT%%
|
|||
endlocal
|
||||
|
||||
endlocal
|
||||
"""
|
||||
""" # noqa: E501
|
||||
return script % args
|
||||
|
||||
|
||||
|
|
|
@ -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):
|
||||
|
@ -242,7 +242,7 @@ rd /S /Q %%LCMS%%\Projects\VC%(vc_version)s\Release
|
|||
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):
|
||||
|
@ -256,7 +256,7 @@ rd /S /Q %%LCMS%%\Projects\VC%(vc_version)s\Release
|
|||
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):
|
||||
|
|
|
@ -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',
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue
Block a user