Skip to content

Commit ebd6901

Browse files
authored
Merge pull request #4673 from hugovk/yesqa
Remove redundant noqa
2 parents b6d6f77 + c8e3757 commit ebd6901

6 files changed

Lines changed: 23 additions & 18 deletions

File tree

.pre-commit-config.yaml

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,31 +8,36 @@ repos:
88
files: \.py$
99
types: []
1010

11+
- repo: https://github.com/timothycrosley/isort
12+
rev: 4.3.21
13+
hooks:
14+
- id: isort
15+
16+
- repo: https://github.com/asottile/yesqa
17+
rev: v1.1.1
18+
hooks:
19+
- id: yesqa
20+
21+
- repo: https://github.com/Lucas-C/pre-commit-hooks
22+
rev: v1.1.7
23+
hooks:
24+
- id: remove-tabs
25+
exclude: (Makefile$|\.bat$|\.cmake$|\.eps$|\.fits$|\.opt$)
26+
1127
- repo: https://gitlab.com/pycqa/flake8
1228
rev: 3.8.2
1329
hooks:
1430
- id: flake8
1531
additional_dependencies: [flake8-2020, flake8-implicit-str-concat]
1632

17-
- repo: https://github.com/timothycrosley/isort
18-
rev: 4.3.21
19-
hooks:
20-
- id: isort
21-
2233
- repo: https://github.com/pre-commit/pygrep-hooks
2334
rev: v1.5.1
2435
hooks:
2536
- id: python-check-blanket-noqa
2637
- id: rst-backticks
2738

2839
- repo: https://github.com/pre-commit/pre-commit-hooks
29-
rev: v2.5.0
40+
rev: v3.1.0
3041
hooks:
3142
- id: check-merge-conflict
3243
- id: check-yaml
33-
34-
- repo: https://github.com/Lucas-C/pre-commit-hooks
35-
rev: v1.1.7
36-
hooks:
37-
- id: remove-tabs
38-
exclude: (Makefile$|\.bat$|\.cmake$|\.eps$|\.fits$|\.opt$)

Tests/test_image_filter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def test_kernel_not_enough_coefficients():
112112
def test_consistency_3x3():
113113
with Image.open("Tests/images/hopper.bmp") as source:
114114
with Image.open("Tests/images/hopper_emboss.bmp") as reference:
115-
kernel = ImageFilter.Kernel( # noqa: E127
115+
kernel = ImageFilter.Kernel(
116116
(3, 3),
117117
# fmt: off
118118
(-1, -1, 0,
@@ -134,7 +134,7 @@ def test_consistency_3x3():
134134
def test_consistency_5x5():
135135
with Image.open("Tests/images/hopper.bmp") as source:
136136
with Image.open("Tests/images/hopper_emboss_more.bmp") as reference:
137-
kernel = ImageFilter.Kernel( # noqa: E127
137+
kernel = ImageFilter.Kernel(
138138
(5, 5),
139139
# fmt: off
140140
(-1, -1, -1, -1, 0,

Tests/test_imagecms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ def assert_aux_channel_preserved(mode, transform_in_place, preserved_channel):
484484
def create_test_image():
485485
# set up test image with something interesting in the tested aux channel.
486486
# fmt: off
487-
nine_grid_deltas = [ # noqa: E131
487+
nine_grid_deltas = [
488488
(-1, -1), (-1, 0), (-1, 1),
489489
(0, -1), (0, 0), (0, 1),
490490
(1, -1), (1, 0), (1, 1),

src/PIL/JpegPresets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
"""
7272

7373
# fmt: off
74-
presets = { # noqa: E128
74+
presets = {
7575
'web_low': {'subsampling': 2, # "4:2:0"
7676
'quantization': [
7777
[20, 16, 25, 39, 50, 46, 62, 68,

src/PIL/PalmImagePlugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from ._binary import o8, o16be as o16b
1212

1313
# fmt: off
14-
_Palm8BitColormapValues = ( # noqa: E131
14+
_Palm8BitColormapValues = (
1515
(255, 255, 255), (255, 204, 255), (255, 153, 255), (255, 102, 255),
1616
(255, 51, 255), (255, 0, 255), (255, 255, 204), (255, 204, 204),
1717
(255, 153, 204), (255, 102, 204), (255, 51, 204), (255, 0, 204),

winbuild/build_prepare.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ def cmd_msbuild(
154154
# "bins": [r"libtiff\*.dll"],
155155
},
156156
"libwebp": {
157-
"url": "http://downloads.webmproject.org/releases/webp/libwebp-1.1.0.tar.gz", # noqa: E501
157+
"url": "http://downloads.webmproject.org/releases/webp/libwebp-1.1.0.tar.gz",
158158
"filename": "libwebp-1.1.0.tar.gz",
159159
"dir": "libwebp-1.1.0",
160160
"build": [

0 commit comments

Comments
 (0)