Mercurial > hg
changeset 49570:3a2b6158374a
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.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Sat, 05 Nov 2022 00:38:02 -0400 |
parents | da48f170d203 |
children | 8fa3f7c3a9ad |
files | contrib/check-code.py |
diffstat | 1 files changed, 0 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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)", ),