From b862de3eda9ca145a3414edca7824da59051f8e4 Mon Sep 17 00:00:00 2001 From: Vincent A Date: Sun, 12 Jul 2020 22:40:15 +0200 Subject: [PATCH] tools/hooks: don't use f-strings without placeholder (flake8 warning) --- tools/hooks/check-line-length.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/hooks/check-line-length.py b/tools/hooks/check-line-length.py index 28c5de1bbe..bd181220f0 100755 --- a/tools/hooks/check-line-length.py +++ b/tools/hooks/check-line-length.py @@ -45,7 +45,7 @@ def check_lines(self): elif token.type == tokenize.COMMENT: if token.start[1] + 1 >= args.line_length: self.add_error( - f"comment starts after max line length", + "comment starts after max line length", line=token.start[0] ) elif token.end[1] >= args.line_length: @@ -57,7 +57,7 @@ def check_lines(self): offending_token = token self.add_error( - f"line too long not due to a string", + "line too long not due to a string", line=offending_token.start[0] ) crossing = False -- GitLab