Skip to content

Commit 4cf7e1b

Browse files
committed
PEP8 compliant fixes
1 parent 9358fae commit 4cf7e1b

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):
@@ -544,6 +545,7 @@ def no_punctuation(self):
544545
"""
545546
return "Hello world!"
546547

548+
547549
class BadSeeAlso(object):
548550

549551
def prefix_pandas(self):
@@ -556,6 +558,7 @@ def prefix_pandas(self):
556558
"""
557559
pass
558560

561+
559562
class TestValidator(object):
560563

561564
def _import_path(self, klass=None, func=None):
@@ -669,7 +672,7 @@ def test_bad_generic_functions(self, func):
669672
marks=pytest.mark.xfail),
670673
# SeeAlso tests
671674
('BadSeeAlso', 'prefix_pandas',
672-
('section does not need the `pandas` prefix',)),
675+
('section does not need `pandas` prefix',)),
673676
])
674677
def test_bad_examples(self, capsys, klass, func, msgs):
675678
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
@@ -509,8 +509,9 @@ def validate_one(func_name):
509509
errs.append('Missing description for '
510510
'See Also "{}" reference'.format(rel_name))
511511
if rel_name.startswith('pandas.'):
512-
errs.append('{} in the `See Also` section does not need the `pandas` prefix, '
513-
'use {} instead.'.format(rel_name,rel_name.replace('pandas.','')))
512+
errs.append('{} in `See Also` section does not '
513+
'need `pandas` prefix, use {} instead.'
514+
.format(rel_name, rel_name.replace('pandas.', '')))
514515
for line in doc.raw_doc.splitlines():
515516
if re.match("^ *\t", line):
516517
errs.append('Tabs found at the start of line "{}", '

0 commit comments

Comments
 (0)