From cebc9c1fccb17e0e65b97e17156bf070a053a488 Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> Date: Sun, 31 Dec 2023 11:55:06 +0100 Subject: [PATCH] cli: remove format() left over in f63e56f - The format() call was missing in the first place for `filename`. - Other format() calls are obviously useless now that f-strings perform string interpolation. --- yamllint/cli.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yamllint/cli.py b/yamllint/cli.py index 604e594..dadce78 100644 --- a/yamllint/cli.py +++ b/yamllint/cli.py @@ -79,9 +79,9 @@ class Format: @staticmethod def github(problem, filename): - line = f'::{problem.level} file={format(filename)},' \ - f'line={format(problem.line)},col={format(problem.column)}' \ - f'::{format(problem.line)}:{format(problem.column)} ' + line = f'::{problem.level} file={filename},' \ + f'line={problem.line},col={problem.column}' \ + f'::{problem.line}:{problem.column} ' if problem.rule: line += f'[{problem.rule}] ' line += problem.desc