From a50146c725599a2cf222bb8a16421763ac448069 Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> Date: Fri, 3 Nov 2023 13:31:00 +0100 Subject: [PATCH 1/2] Fix ruff warning in Python script D415 [*] First line should end with a period, question mark, or exclamation point --- tests/lint/line_length.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/lint/line_length.py b/tests/lint/line_length.py index 2b82b190..28f25547 100755 --- a/tests/lint/line_length.py +++ b/tests/lint/line_length.py @@ -43,7 +43,7 @@ def endswithstring(line): def main(): - """Check each file provided as a command line parameter + """Check each file provided as a command line parameter. Returns ------- From f866cd2a4b2fb427c62c06a7f2ad0b0e23141042 Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> Date: Fri, 3 Nov 2023 13:32:11 +0100 Subject: [PATCH 2/2] Run black on Python script --- tests/lint/line_length.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/lint/line_length.py b/tests/lint/line_length.py index 28f25547..9266936f 100755 --- a/tests/lint/line_length.py +++ b/tests/lint/line_length.py @@ -38,8 +38,7 @@ def endswithstring(line): True if line ends with string, False otherwise. """ - return any(line.endswith(end) - for end in ('"', '",', '");', '";', '" \\', '];')) + return any(line.endswith(end) for end in ('"', '",', '");', '";', '" \\', '];')) def main():