Skip to content

Commit 3910efe

Browse files
fixed some lint
1 parent 3244212 commit 3910efe

3 files changed

Lines changed: 8 additions & 6 deletions

File tree

py_gd/test/test_animation.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,12 @@
55
designed to be run with pytest:
66
"""
77

8-
import sys
98
import hashlib
109
from pathlib import Path
1110
import numpy as np
1211

13-
import pytest
1412

15-
from py_gd import Image, Animation, asn2array, from_array # noqa: F821
13+
from py_gd import Image, Animation # noqa: F821
1614
from py_gd.color_ramp import ColorRamp
1715

1816
HERE = Path(__file__).parent
@@ -52,6 +50,7 @@ def check_file(name):
5250
print("Checksum did not match for file:", name)
5351
return False
5452

53+
5554
def rotating_line(size=200):
5655
"""
5756
generate the endpoints of a rotating line
@@ -158,7 +157,6 @@ def test_animation_multi_images_colors():
158157
# should check the checksum
159158

160159

161-
162160
def test_static_animation():
163161
"""
164162
If subsequent frames are identical, then it should add to the delay,

py_gd/test/test_color_ramp.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
import pytest
1717

18+
1819
def test_color_index():
1920
colors = [(i, i+5, 1+10) for i in range(25)]
2021

@@ -102,6 +103,7 @@ def test_colorlist():
102103
# Image doesn't let you add duplicate color names
103104
assert len(set(colorlist)) == len(colorlist)
104105

106+
105107
def test_image_with_colorramp():
106108
"""
107109
generate an image using a colorramp
@@ -129,7 +131,10 @@ def test_image_with_colorramp():
129131

130132
assert check_file("test_image_with_colorramp.png")
131133

134+
132135
schemes = [name[0] for name in colorscheme_names if name[1] == 'continuous']
136+
137+
133138
@pytest.mark.parametrize("scheme", schemes)
134139
def test_image_with_all_colorramps(scheme):
135140
"""
@@ -158,4 +163,3 @@ def test_image_with_all_colorramps(scheme):
158163
img.save(outfile("test_image_with_colorramp.png"), 'png')
159164

160165
assert Path(outfile("test_image_with_colorramp.png")).is_file()
161-

py_gd/test/test_gd.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
import pytest
1717

18-
from py_gd import Image, Animation, asn2array, from_array # noqa: F821
18+
from py_gd import Image, asn2array, from_array # noqa: F821
1919

2020

2121
HERE = Path(__file__).parent

0 commit comments

Comments
 (0)