Skip to content

Commit c857b4f

Browse files
mariocj89jorisvandenbossche
authored andcommitted
DOC: Validation script checks for tabs (#20112)
1 parent 8c7d1f6 commit c857b4f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

scripts/validate_docstrings.py

+6
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,12 @@ def validate_one(func_name):
455455
if not rel_desc:
456456
errs.append('Missing description for '
457457
'See Also "{}" reference'.format(rel_name))
458+
459+
for line in doc.raw_doc.splitlines():
460+
if re.match("^ *\t", line):
461+
errs.append('Tabs found at the start of line "{}", '
462+
'please use whitespace only'.format(line.lstrip()))
463+
458464
examples_errs = ''
459465
if not doc.examples:
460466
errs.append('No examples section found')

0 commit comments

Comments
 (0)