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.
--- 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)",
),