File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
tools/tensorflow_docs/tools/nblint/style Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ def inclusive_language(args):
65
65
found_words = search_wordlist (_INCLUSIVE_WORDLIST , args ["cell_source" ])
66
66
if found_words :
67
67
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 (f"Use inclusive language where possible and accurate. Found: { words } in { args [ 'cell_source' ] } " )
69
69
else :
70
70
return True
71
71
@@ -82,6 +82,6 @@ def second_person(args):
82
82
found_words = search_wordlist (_SECOND_PERSON_WORDLIST , args ["cell_source" ])
83
83
if found_words :
84
84
words = ", " .join ([f"{ word } => { alt } " for word , alt in found_words .items ()])
85
- fail (f"Prefer second person instead of first person. Found: { words } " )
85
+ fail (f"Prefer second person instead of first person. Found: { words } in { args [ 'cell_source' ] } " )
86
86
else :
87
87
return True
You can’t perform that action at this time.
0 commit comments