Skip to content

Commit

Permalink
DOC: Validation script checks for tabs (pandas-dev#20112)
Browse files Browse the repository at this point in the history
  • Loading branch information
mariocj89 authored and jorisvandenbossche committed Mar 14, 2018
1 parent 8c7d1f6 commit c857b4f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/validate_docstrings.py
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,12 @@ def validate_one(func_name):
if not rel_desc:
errs.append('Missing description for '
'See Also "{}" reference'.format(rel_name))

for line in doc.raw_doc.splitlines():
if re.match("^ *\t", line):
errs.append('Tabs found at the start of line "{}", '
'please use whitespace only'.format(line.lstrip()))

examples_errs = ''
if not doc.examples:
errs.append('No examples section found')
Expand Down

0 comments on commit c857b4f

Please sign in to comment.