diff --git a/hacking/checks/other.py b/hacking/checks/other.py index 923c7088..39fe6f56 100644 --- a/hacking/checks/other.py +++ b/hacking/checks/other.py @@ -55,5 +55,5 @@ def hacking_delayed_string_interpolation(logical_line, noqa): # There are some cases where string formatting of the arguments are # needed, so don't include those when checking. line = re.sub(r",.*", '', line) - if '%' in line or '.format' in line: + if '%' in line or '.format(' in line: yield 0, msg