Skip to content

Commit ed015d1

Browse files
hongshaoyangPingviinituutti
authored andcommitted
add number of Errors, Warnings to scripts/validate_docstrings.py (pandas-dev#23150)
1 parent c6df58c commit ed015d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/validate_docstrings.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -610,11 +610,11 @@ def header(title, width=80, char='#'):
610610
fd.write('{}\n'.format(doc_info['docstring']))
611611
fd.write(header('Validation'))
612612
if doc_info['errors']:
613-
fd.write('Errors found:\n')
613+
fd.write('{} Errors found:\n'.format(len(doc_info['errors'])))
614614
for err in doc_info['errors']:
615615
fd.write('\t{}\n'.format(err))
616616
if doc_info['warnings']:
617-
fd.write('Warnings found:\n')
617+
fd.write('{} Warnings found:\n'.format(len(doc_info['warnings'])))
618618
for wrn in doc_info['warnings']:
619619
fd.write('\t{}\n'.format(wrn))
620620

0 commit comments

Comments
 (0)