@@ -124,7 +124,6 @@ def test_docstring_with_message(self) -> None:
124124 """
125125 with self .assertAddsMessages (
126126 MessageTest (msg_id = "fixme" , line = 2 , args = "FIXME message" , col_offset = 9 )
127-
128127 ):
129128 self .checker .process_tokens (_tokenize_str (code ))
130129
@@ -150,7 +149,7 @@ def test_docstring_with_nl_message_multi(self) -> None:
150149 """
151150 with self .assertAddsMessages (
152151 MessageTest (msg_id = "fixme" , line = 3 , args = "FIXME this" , col_offset = 9 ),
153- MessageTest (msg_id = "fixme" , line = 4 , args = "TODO: that" , col_offset = 9 )
152+ MessageTest (msg_id = "fixme" , line = 4 , args = "TODO: that" , col_offset = 9 ),
154153 ):
155154 self .checker .process_tokens (_tokenize_str (code ))
156155
@@ -166,7 +165,7 @@ def test_docstring_with_comment(self) -> None:
166165 with self .assertAddsMessages (
167166 MessageTest (msg_id = "fixme" , line = 2 , args = "XXX message1" , col_offset = 9 ),
168167 MessageTest (msg_id = "fixme" , line = 4 , args = "FIXME message2" , col_offset = 9 ),
169- MessageTest (msg_id = "fixme" , line = 5 , args = "TODO message3" , col_offset = 9 )
168+ MessageTest (msg_id = "fixme" , line = 5 , args = "TODO message3" , col_offset = 9 ),
170169 ):
171170 self .checker .process_tokens (_tokenize_str (code ))
172171
@@ -206,29 +205,27 @@ def test_docstring_todo_mult(self) -> None:
206205 \" \" \"
207206 """
208207 with self .assertAddsMessages (
209- MessageTest (msg_id = "fixme" , line = 3 , args = "FIXME this TODO that" , col_offset = 9 ),
208+ MessageTest (
209+ msg_id = "fixme" , line = 3 , args = "FIXME this TODO that" , col_offset = 9
210+ ),
210211 ):
211212 self .checker .process_tokens (_tokenize_str (code ))
212-
213- @set_config (
214- check_fixme_in_docstring = True ,
215- notes = ["CODETAG" ]
216- )
213+
214+ @set_config (check_fixme_in_docstring = True , notes = ["CODETAG" ])
217215 def test_docstring_custom_note (self ) -> None :
218216 code = """
219217 \" \" \"
220218 CODETAG implement this
221219 \" \" \"
222220 """
223221 with self .assertAddsMessages (
224- MessageTest (msg_id = "fixme" , line = 3 , args = "CODETAG implement this" , col_offset = 9 ),
222+ MessageTest (
223+ msg_id = "fixme" , line = 3 , args = "CODETAG implement this" , col_offset = 9
224+ ),
225225 ):
226226 self .checker .process_tokens (_tokenize_str (code ))
227-
228- @set_config (
229- check_fixme_in_docstring = True ,
230- notes_rgx = "FIX.*"
231- )
227+
228+ @set_config (check_fixme_in_docstring = True , notes_rgx = "FIX.*" )
232229 def test_docstring_custom_rgx (self ) -> None :
233230 code = """
234231 \" \" \"
@@ -237,7 +234,11 @@ def test_docstring_custom_rgx(self) -> None:
237234 \" \" \"
238235 """
239236 with self .assertAddsMessages (
240- MessageTest (msg_id = "fixme" , line = 3 , args = "FIXME implement this" , col_offset = 9 ),
241- MessageTest (msg_id = "fixme" , line = 4 , args = "FIXTHIS also implement this" , col_offset = 9 ),
237+ MessageTest (
238+ msg_id = "fixme" , line = 3 , args = "FIXME implement this" , col_offset = 9
239+ ),
240+ MessageTest (
241+ msg_id = "fixme" , line = 4 , args = "FIXTHIS also implement this" , col_offset = 9
242+ ),
242243 ):
243244 self .checker .process_tokens (_tokenize_str (code ))
0 commit comments