Skip to content

Commit 980775e

Browse files
committed
lint tests
1 parent 6010b5d commit 980775e

File tree

5 files changed

+12
-7
lines changed

5 files changed

+12
-7
lines changed

.pylintrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ disable=
77
invalid-name,
88
locally-disabled,
99
missing-docstring,
10+
too-few-public-methods,
1011
too-many-branches,
1112
too-many-statements,
1213
too-many-arguments,

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ before_script:
5151

5252
# run tests
5353
script:
54-
- pylint matplotlib2tikz
54+
- pylint matplotlib2tikz/
55+
- pylint test/*py
5556
# cd into test directory to make sure we're using the pip-installed
5657
# matplotlib2tikz.
5758
- cd test && MPLBACKEND=Agg pytest --cov matplotlib2tikz

test/helpers.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
11
# -*- coding: utf-8 -*-
22
#
3+
from __future__ import print_function
4+
5+
import os
6+
import shutil
7+
import subprocess
8+
import tempfile
9+
310
import matplotlib2tikz
411

512
import imagehash
613
import matplotlib
714
import matplotlib.pyplot as plt
8-
import os
915
from PIL import Image
10-
import shutil
11-
import subprocess
12-
import tempfile
1316

1417

1518
class Phash(object):

test/test_annotate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def plot():
1616
)
1717
t = np.arange(0.0, 5.0, 0.01)
1818
s = np.cos(2*np.pi*t)
19-
line, = ax.plot(t, s, color='blue')
19+
ax.plot(t, s, color='blue')
2020
ax.annotate(
2121
'text',
2222
xy=(4., 1.),

test/test_barchart_errorbars.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def plot():
3131
x-w, y1, w, color='b', yerr=y1err, align='center', error_kw=errBarStyle
3232
)
3333
ax.bar(
34-
x, y2, w, color='g', yerr=y2err, align='center', error_kw=errBarStyle
34+
x, y2, w, color='g', yerr=y2err, align='center', error_kw=errBarStyle
3535
)
3636
ax.bar(
3737
x+w, y3, w, color='r', yerr=y3err, align='center', error_kw=errBarStyle

0 commit comments

Comments
 (0)