Commit b862de3e authored by Vincent A's avatar Vincent A

tools/hooks: don't use f-strings without placeholder (flake8 warning)

parent f5ecb8c1
......@@ -45,7 +45,7 @@ class LineLengthChecker(Checker):
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 @@ class LineLengthChecker(Checker):
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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment