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):
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 (
69
+ f"Use inclusive language where possible and accurate. Found: { words } in"
70
+ f" { args ['cell_source' ]} "
71
+ )
69
72
else :
70
73
return True
71
74
@@ -82,6 +85,9 @@ def second_person(args):
82
85
found_words = search_wordlist (_SECOND_PERSON_WORDLIST , args ["cell_source" ])
83
86
if found_words :
84
87
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
+ )
86
92
else :
87
93
return True
You can’t perform that action at this time.
0 commit comments