Show More
@@ -172,13 +172,13 b' pypats = [' | |||
|
172 | 172 | "gratuitous whitespace after Python keyword"), |
|
173 | 173 | (r'([\(\[][ \t]\S)|(\S[ \t][\)\]])', "gratuitous whitespace in () or []"), |
|
174 | 174 | # (r'\s\s=', "gratuitous whitespace before ="), |
|
175 | (r'[^>< ](\+=|-=|!=|<>|<=|>=|<<=|>>=)\S', | |
|
175 | (r'[^>< ](\+=|-=|!=|<>|<=|>=|<<=|>>=|%=)\S', | |
|
176 | 176 | "missing whitespace around operator"), |
|
177 | (r'[^>< ](\+=|-=|!=|<>|<=|>=|<<=|>>=)\s', | |
|
177 | (r'[^>< ](\+=|-=|!=|<>|<=|>=|<<=|>>=|%=)\s', | |
|
178 | 178 | "missing whitespace around operator"), |
|
179 | (r'\s(\+=|-=|!=|<>|<=|>=|<<=|>>=)\S', | |
|
179 | (r'\s(\+=|-=|!=|<>|<=|>=|<<=|>>=|%=)\S', | |
|
180 | 180 | "missing whitespace around operator"), |
|
181 | (r'[^^+=*/!<>&| -](\s=|=\s)[^= ]', | |
|
181 | (r'[^^+=*/!<>&| %-](\s=|=\s)[^= ]', | |
|
182 | 182 | "wrong whitespace around ="), |
|
183 | 183 | (r'raise Exception', "don't raise generic exceptions"), |
|
184 | 184 | (r' is\s+(not\s+)?["\'0-9-]', "object comparison with literal"), |
General Comments 0
You need to be logged in to leave comments.
Login now