diff --git a/src/PIL/ImageDraw.py b/src/PIL/ImageDraw.py index 3ece201521b..c6e12150e8a 100644 --- a/src/PIL/ImageDraw.py +++ b/src/PIL/ImageDraw.py @@ -313,7 +313,7 @@ def draw_text(ink, stroke_width=0, stroke_offset=None): language=language, stroke_width=stroke_width, *args, - **kwargs + **kwargs, ) coord = coord[0] + offset[0], coord[1] + offset[1] except AttributeError: @@ -326,7 +326,7 @@ def draw_text(ink, stroke_width=0, stroke_offset=None): language, stroke_width, *args, - **kwargs + **kwargs, ) except TypeError: mask = font.getmask(text) diff --git a/src/PIL/ImageFilter.py b/src/PIL/ImageFilter.py index 9cb62ad2748..6b0f5eb376b 100644 --- a/src/PIL/ImageFilter.py +++ b/src/PIL/ImageFilter.py @@ -495,7 +495,7 @@ def transform(self, callback, with_normals=False, channels=None, target_mode=Non r / (size1D - 1), g / (size2D - 1), b / (size3D - 1), - *values + *values, ) else: values = callback(*values) diff --git a/tox.ini b/tox.ini index 0bf833b815f..07d75be64a4 100644 --- a/tox.ini +++ b/tox.ini @@ -24,7 +24,7 @@ deps = [testenv:lint] commands = - black --check --diff . + black --target-version py35 --check --diff . flake8 --statistics --count isort --check-only --diff check-manifest