Skip to content

Commit

Permalink
CI: Improve error message format in validate_docstrings.py (#56827)
Browse files Browse the repository at this point in the history
  • Loading branch information
luke396 authored Jan 15, 2024
1 parent 73bc5f4 commit 4e7a1ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/validate_docstrings.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ def header(title, width=80, char="#") -> str:
if result["errors"]:
sys.stderr.write(f'{len(result["errors"])} Errors found for `{func_name}`:\n')
for err_code, err_desc in result["errors"]:
sys.stderr.write(f"\t{err_desc}\n")
sys.stderr.write(f"\t{err_code}\t{err_desc}\n")
else:
sys.stderr.write(f'Docstring for "{func_name}" correct. :)\n')

Expand Down

0 comments on commit 4e7a1ee

Please sign in to comment.