250 (r'\S;\s*\n', "semicolon"), |
250 (r'\S;\s*\n', "semicolon"), |
251 (r'[^_]_\([ \t\n]*(?:"[^"]+"[ \t\n+]*)+%', "don't use % inside _()"), |
251 (r'[^_]_\([ \t\n]*(?:"[^"]+"[ \t\n+]*)+%', "don't use % inside _()"), |
252 (r"[^_]_\([ \t\n]*(?:'[^']+'[ \t\n+]*)+%", "don't use % inside _()"), |
252 (r"[^_]_\([ \t\n]*(?:'[^']+'[ \t\n+]*)+%", "don't use % inside _()"), |
253 (r'(\w|\)),\w', "missing whitespace after ,"), |
253 (r'(\w|\)),\w', "missing whitespace after ,"), |
254 (r'(\w|\))[+/*\-<>]\w', "missing whitespace in expression"), |
254 (r'(\w|\))[+/*\-<>]\w', "missing whitespace in expression"), |
255 (r'^\s+(\w|\.)+=\w[^,()\n]*$', "missing whitespace in assignment"), |
|
256 (r'\w\s=\s\s+\w', "gratuitous whitespace after ="), |
255 (r'\w\s=\s\s+\w', "gratuitous whitespace after ="), |
257 (( |
256 (( |
258 # a line ending with a colon, potentially with trailing comments |
257 # a line ending with a colon, potentially with trailing comments |
259 r':([ \t]*#[^\n]*)?\n' |
258 r':([ \t]*#[^\n]*)?\n' |
260 # one that is not a pass and not only a comment |
259 # one that is not a pass and not only a comment |