Skip to content

Commit 55d6cf5

Browse files
authored
Merge pull request #6928 from python-pillow/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2 parents 569751e + 24183d6 commit 55d6cf5

File tree

112 files changed

+9
-299
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

112 files changed

+9
-299
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/psf/black
3-
rev: 22.12.0
3+
rev: 23.1.0
44
hooks:
55
- id: black
66
args: [--target-version=py37]

Tests/check_fli_overflow.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55

66
def test_fli_overflow():
7-
87
# this should not crash with a malloc error or access violation
98
with Image.open(TEST_FILE) as im:
109
im.load()

Tests/check_png_dos.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ def test_ignore_dos_text():
2323

2424

2525
def test_dos_text():
26-
2726
try:
2827
im = Image.open(TEST_FILE)
2928
im.load()

Tests/test_bmp_reference.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ def test_bad():
1818
"""These shouldn't crash/dos, but they shouldn't return anything
1919
either"""
2020
for f in get_files("b"):
21-
2221
# Assert that there is no unclosed file warning
2322
with warnings.catch_warnings():
2423
try:

Tests/test_file_bmp.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,6 @@ def test_rgba_bitfields():
141141
# This test image has been manually hexedited
142142
# to change the bitfield compression in the header from XBGR to RGBA
143143
with Image.open("Tests/images/rgb32bf-rgba.bmp") as im:
144-
145144
# So before the comparing the image, swap the channels
146145
b, g, r = im.split()[1:]
147146
im = Image.merge("RGB", (r, g, b))

Tests/test_file_bufrstub.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
def test_open():
1111
# Act
1212
with Image.open(TEST_FILE) as im:
13-
1413
# Assert
1514
assert im.format == "BUFR"
1615

@@ -31,7 +30,6 @@ def test_invalid_file():
3130
def test_load():
3231
# Arrange
3332
with Image.open(TEST_FILE) as im:
34-
3533
# Act / Assert: stub cannot load without an implemented handler
3634
with pytest.raises(OSError):
3735
im.load()

Tests/test_file_dcx.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ def test_sanity():
1515

1616
# Act
1717
with Image.open(TEST_FILE) as im:
18-
1918
# Assert
2019
assert im.size == (128, 128)
2120
assert isinstance(im, DcxImagePlugin.DcxImageFile)
@@ -54,7 +53,6 @@ def test_invalid_file():
5453
def test_tell():
5554
# Arrange
5655
with Image.open(TEST_FILE) as im:
57-
5856
# Act
5957
frame = im.tell()
6058

Tests/test_file_eps.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ def test_invalid_file():
8080
@pytest.mark.skipif(not HAS_GHOSTSCRIPT, reason="Ghostscript not available")
8181
def test_cmyk():
8282
with Image.open("Tests/images/pil_sample_cmyk.eps") as cmyk_image:
83-
8483
assert cmyk_image.mode == "CMYK"
8584
assert cmyk_image.size == (100, 100)
8685
assert cmyk_image.format == "EPS"

Tests/test_file_fits.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
def test_open():
1313
# Act
1414
with Image.open(TEST_FILE) as im:
15-
1615
# Assert
1716
assert im.format == "FITS"
1817
assert im.size == (128, 128)

Tests/test_file_fli.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ def test_context_manager():
6464
def test_tell():
6565
# Arrange
6666
with Image.open(static_test_file) as im:
67-
6867
# Act
6968
frame = im.tell()
7069

@@ -110,7 +109,6 @@ def test_eoferror():
110109

111110
def test_seek_tell():
112111
with Image.open(animated_test_file) as im:
113-
114112
layer_number = im.tell()
115113
assert layer_number == 0
116114

0 commit comments

Comments
 (0)