Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tools/tensorflow_docs/tools/nblint/style/google.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def inclusive_language(args):
found_words = search_wordlist(_INCLUSIVE_WORDLIST, args["cell_source"])
if found_words:
words = ", ".join([f"{word} => {alt}" for word, alt in found_words.items()])
fail(f"Use inclusive language where possible and accurate. Found: {words}")
fail(f"Use inclusive language where possible and accurate. Found: {words} in {args['cell_source']}")
else:
return True

Expand All @@ -82,6 +82,6 @@ def second_person(args):
found_words = search_wordlist(_SECOND_PERSON_WORDLIST, args["cell_source"])
if found_words:
words = ", ".join([f"{word} => {alt}" for word, alt in found_words.items()])
fail(f"Prefer second person instead of first person. Found: {words}")
fail(f"Prefer second person instead of first person. Found: {words} in {args['cell_source']}")
else:
return True