Skip to content

Commit 4e7a1ee

Browse files
authored
CI: Improve error message format in validate_docstrings.py (#56827)
1 parent 73bc5f4 commit 4e7a1ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/validate_docstrings.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ def header(title, width=80, char="#") -> str:
392392
if result["errors"]:
393393
sys.stderr.write(f'{len(result["errors"])} Errors found for `{func_name}`:\n')
394394
for err_code, err_desc in result["errors"]:
395-
sys.stderr.write(f"\t{err_desc}\n")
395+
sys.stderr.write(f"\t{err_code}\t{err_desc}\n")
396396
else:
397397
sys.stderr.write(f'Docstring for "{func_name}" correct. :)\n')
398398

0 commit comments

Comments
 (0)