Show More
@@ -263,6 +263,7 b' pypats = [' | |||
|
263 | 263 | ], |
|
264 | 264 | # warnings |
|
265 | 265 | [ |
|
266 | (r'(^| )oo +xxxxoo[ \n][^\n]', "add two newlines after '.. note::'"), | |
|
266 | 267 | ] |
|
267 | 268 | ] |
|
268 | 269 |
@@ -204,3 +204,42 b'' | |||
|
204 | 204 | don't use old-style two-argument raise, use Exception(message) |
|
205 | 205 | [1] |
|
206 | 206 | |
|
207 | $ cat > rst.py <<EOF | |
|
208 | > """problematic rst text | |
|
209 | > | |
|
210 | > .. note:: | |
|
211 | > wrong | |
|
212 | > """ | |
|
213 | > | |
|
214 | > ''' | |
|
215 | > | |
|
216 | > .. note:: | |
|
217 | > | |
|
218 | > valid | |
|
219 | > | |
|
220 | > new text | |
|
221 | > | |
|
222 | > .. note:: | |
|
223 | > | |
|
224 | > also valid | |
|
225 | > ''' | |
|
226 | > | |
|
227 | > """mixed | |
|
228 | > | |
|
229 | > .. note:: | |
|
230 | > | |
|
231 | > good | |
|
232 | > | |
|
233 | > .. note:: | |
|
234 | > plus bad | |
|
235 | > """ | |
|
236 | > EOF | |
|
237 | $ $check_code -w rst.py | |
|
238 | rst.py:3: | |
|
239 | > .. note:: | |
|
240 | warning: add two newlines after '.. note::' | |
|
241 | rst.py:26: | |
|
242 | > .. note:: | |
|
243 | warning: add two newlines after '.. note::' | |
|
244 | [1] | |
|
245 |
General Comments 0
You need to be logged in to leave comments.
Login now