From 844c135fc925f39cd4fa98f2da0d7979a275689e Mon Sep 17 00:00:00 2001 From: Mylloon Date: Tue, 18 Apr 2023 22:12:50 +0200 Subject: [PATCH] fix Ruff(E501) --- main.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index f47566b..77616c9 100644 --- a/main.py +++ b/main.py @@ -18,7 +18,8 @@ def clang_format(file_path): def parse_clang_format_output(output): - error_pattern = r"(?P.+):(?P\d+):(?P\d+): warning: code should be clang-formatted \[(?P.+)\]" + error_pattern = r"(?P.+):(?P\d+):(?P\d+):" + \ + r" warning: code should be clang-formatted \[(?P.+)\]" error_matches = re.finditer(error_pattern, output) if error_matches: @@ -48,6 +49,7 @@ if __name__ == "__main__": if parsed_output: for error in parsed_output: print( - f"Warning dans {error['filename']} à la ligne {error['line_number']}, caractère {error['column_number']} : {error['warning_message']}") + f"Warning dans {error['filename']} à la ligne {error['line_number']}," + + f" caractère {error['column_number']} : {error['warning_message']}") else: print("No warnings found.")