Skip to content

Commit cf75147

Browse files
committed
line break fixes
1 parent d99430d commit cf75147

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

scripts/tests/test_validate_docstrings.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -640,7 +640,7 @@ def test_bad_generic_functions(self, func):
640640
marks=pytest.mark.xfail),
641641
pytest.param('BadReturns', 'no_punctuation', ('foo',),
642642
marks=pytest.mark.xfail),
643-
# Examples
643+
# Examples tests
644644
('BadExamples', 'numpy_import',
645645
('Examples should not have `import numpy` ',)),
646646
('BadExamples', 'pandas_import',

scripts/validate_docstrings.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -520,10 +520,9 @@ def validate_one(func_name):
520520
errs.append('Examples do not pass tests')
521521
examples_codes = doc.examples_codes
522522
if 'import numpy' in examples_codes:
523-
errs.append(' Examples should not have `import numpy` ')
523+
errs.append('Examples should not have `import numpy` ')
524524
if 'import pandas' in examples_codes:
525-
errs.append(' Examples should not have '
526-
'`import pandas` ')
525+
errs.append('Examples should not have `import pandas` ')
527526

528527
return {'type': doc.type,
529528
'docstring': doc.clean_doc,

0 commit comments

Comments
 (0)