comparison contrib/check-code.py @ 43063:9bfd083bc6ee

contrib: stop whining about whitespace around = This was conflicting with black, so dump it. Differential Revision: https://phab.mercurial-scm.org/D6979
author Augie Fackler <augie@google.com>
date Sat, 05 Oct 2019 10:49:24 -0400
parents 28002d25eb54
children 2372284d9457
comparison
equal deleted inserted replaced
43062:28002d25eb54 43063:9bfd083bc6ee
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