Skip to content

Commit 3a16664

Browse files
committed
lint
1 parent 9e1084d commit 3a16664

File tree

4 files changed

+3
-9
lines changed

4 files changed

+3
-9
lines changed

.flake8

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[flake8]
2-
ignore = E203, E266, E501, W503
2+
ignore = E203, E266, E501, W503, C901
33
max-line-length = 88
44
max-complexity = 20
55
select = B,C,E,F,W,T4,B9

test/test_contourf.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ def plot():
2828

2929
def test():
3030
assert_equality(plot, __file__[:-3] + "_reference.tex")
31-
return
3231

3332

3433
if __name__ == "__main__":
@@ -38,8 +37,6 @@ def test():
3837
# helpers.compare_mpl_tex(plot)
3938
# helpers.print_tree(plot())
4039
plot()
41-
import matplotlib.pyplot as plt
42-
4340
# plt.show()
4441
# plt.savefig('out.pgf')
4542
import tikzplotlib

test/test_scatter_different_colors.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1+
import matplotlib.pyplot as plt
2+
import numpy as np
13
from helpers import assert_equality
24

35

46
def plot():
5-
import numpy as np
6-
from matplotlib import pyplot as plt
7-
87
fig = plt.figure()
98
np.random.seed(123)
109
n = 4
@@ -40,7 +39,6 @@ def test():
4039
# helpers.compare_mpl_tex(plot)
4140
# helpers.print_tree(plot())
4241
plot()
43-
import matplotlib.pyplot as plt
4442

4543
# plt.show()
4644
# plt.savefig('out.pgf')

tikzplotlib/_path.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,6 @@ def draw_pathcollection(data, obj):
279279
content.append(f"table{to}{{%\n")
280280

281281
content.append(" ".join(labels) + "\n")
282-
ff = data["float format"]
283282

284283
for row in dd_strings:
285284
content.append(" ".join(row) + "\n")

0 commit comments

Comments
 (0)