check-code: drop the check for whitespace around named parameters
authorMatt Harbison <matt_harbison@yahoo.com>
Sat, 05 Nov 2022 00:38:02 -0400
changeset 49570 3a2b6158374a
parent 49564 da48f170d203
child 49571 8fa3f7c3a9ad
check-code: drop the check for whitespace around named parameters This check flags py3 annotations of named parameters, because `black` adds spaces around the assignment in this case. Since the chosen formatter has opinions (and pylint also wants the space in the case of annotations), drop the check so we can use py3 annotations.
contrib/check-code.py
--- a/contrib/check-code.py	Wed Oct 19 12:38:06 2022 +0200
+++ b/contrib/check-code.py	Sat Nov 05 00:38:02 2022 -0400
@@ -372,10 +372,6 @@
         ),
         (r'[^^+=*/!<>&| %-](\s=|=\s)[^= ]', "wrong whitespace around ="),
         (
-            r'\([^()]*( =[^=]|[^<>!=]= )',
-            "no whitespace around = for named parameters",
-        ),
-        (
             r'raise [^,(]+, (\([^\)]+\)|[^,\(\)]+)$',
             "don't use old-style two-argument raise, use Exception(message)",
         ),