Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 64b58e8

Browse files
committed
appeast flake8 linter
1 parent 8bdc5cb commit 64b58e8

5 files changed

Lines changed: 16 additions & 16 deletions

File tree

cloudside/__init__.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
from .exporters import *
2-
from . import storms
3-
from . import viz
4-
from . import ncdc
5-
from . import asos
1+
from .exporters import * # noqa
2+
from . import storms # noqa
3+
from . import viz # noqa
4+
from . import ncdc # noqa
5+
from . import asos # noqa
66

7-
from .tests import test, teststrict
7+
from .tests import test, teststrict # noqa
88

99

1010
__author__ = "Paul Hobson"

cloudside/hydra.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def parse_file(filepath):
3131
"""
3232

3333
read_opts = {
34-
"sep": "\s+",
34+
"sep": r"\s+",
3535
"header": None,
3636
"parse_dates": ["Date"],
3737
"na_values": ["-"],

cloudside/ncdc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ def dataAvailabilityHeatmap(data, figsize=None):
359359

360360
if __name__ == "__main__":
361361
filepath = "test.dat"
362-
sep = "\s+"
362+
sep = r"\s+"
363363
data_1hr = pandas.read_csv(
364364
filepath,
365365
sep=sep,

cloudside/viz.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ def _speed_labels(bins, units=None):
263263
labels = []
264264
for left, right in zip(bins[:-1], bins[1:]):
265265
if left == bins[0]:
266-
labels.append("calm".format(right))
266+
labels.append("calm")
267267
elif numpy.isinf(right):
268268
labels.append(">{} {}".format(left, units))
269269
else:

setup.cfg

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@ description-file = readme.rst
33
license_file = LICENSE
44

55
[tool:pytest]
6-
pep8ignore =
6+
testpaths = cloudside
7+
markers =
8+
mpl_image_compare
9+
runslow
10+
11+
flake8-ignore =
712
E501
813
E131
914
E128
1015
cloudside/tests/test_*.py E241 E131
1116
check_cloudside.py ALL
1217
docs/* ALL
1318

14-
markers =
15-
mpl_image_compare
16-
runslow
17-
18-
[pep8]
19-
max-line-length = 90
19+
flake8-max-line-length = 90

0 commit comments

Comments
 (0)