File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
tools/tensorflow_docs/tools/nblint/style Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,10 @@ def inclusive_language(args):
6565 found_words = search_wordlist (_INCLUSIVE_WORDLIST , args ["cell_source" ])
6666 if found_words :
6767 words = ", " .join ([f"{ word } => { alt } " for word , alt in found_words .items ()])
68- fail (f"Use inclusive language where possible and accurate. Found: { words } " )
68+ fail (
69+ f"Use inclusive language where possible and accurate. Found: { words } in"
70+ f" { args ['cell_source' ]} "
71+ )
6972 else :
7073 return True
7174
@@ -82,6 +85,9 @@ def second_person(args):
8285 found_words = search_wordlist (_SECOND_PERSON_WORDLIST , args ["cell_source" ])
8386 if found_words :
8487 words = ", " .join ([f"{ word } => { alt } " for word , alt in found_words .items ()])
85- fail (f"Prefer second person instead of first person. Found: { words } " )
88+ fail (
89+ f"Prefer second person instead of first person. Found: { words } in"
90+ f" { args ['cell_source' ]} "
91+ )
8692 else :
8793 return True
You can’t perform that action at this time.
0 commit comments