Skip to content

Commit 6e7ab2a

Browse files
committed
PEP8 compliant fixes
1 parent 08ef078 commit 6e7ab2a

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

scripts/tests/test_validate_docstrings.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,7 @@ def method(self, foo=None, bar=None):
333333
"""
334334
pass
335335

336+
336337
class BadSummaries(object):
337338

338339
def wrong_line(self):
@@ -500,6 +501,7 @@ def no_punctuation(self):
500501
"""
501502
return "Hello world!"
502503

504+
503505
class BadSeeAlso(object):
504506

505507
def prefix_pandas(self):
@@ -512,6 +514,7 @@ def prefix_pandas(self):
512514
"""
513515
pass
514516

517+
515518
class TestValidator(object):
516519

517520
def _import_path(self, klass=None, func=None):
@@ -613,7 +616,7 @@ def test_bad_generic_functions(self, func):
613616
marks=pytest.mark.xfail),
614617
# SeeAlso tests
615618
('BadSeeAlso', 'prefix_pandas',
616-
('section does not need the `pandas` prefix',)),
619+
('section does not need `pandas` prefix',)),
617620
])
618621
def test_bad_examples(self, capsys, klass, func, msgs):
619622
result = validate_one(self._import_path(klass=klass, func=func)) # noqa:F821

scripts/validate_docstrings.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -500,8 +500,9 @@ def validate_one(func_name):
500500
errs.append('Missing description for '
501501
'See Also "{}" reference'.format(rel_name))
502502
if rel_name.startswith('pandas.'):
503-
errs.append('{} in the `See Also` section does not need the `pandas` prefix, '
504-
'use {} instead.'.format(rel_name,rel_name.replace('pandas.','')))
503+
errs.append('{} in `See Also` section does not '
504+
'need `pandas` prefix, use {} instead.'
505+
.format(rel_name, rel_name.replace('pandas.', '')))
505506
for line in doc.raw_doc.splitlines():
506507
if re.match("^ *\t", line):
507508
errs.append('Tabs found at the start of line "{}", '

0 commit comments

Comments
 (0)