From 89415ff41524203c8be741eb55367194713f88b8 Mon Sep 17 00:00:00 2001 From: "Mikhail f. Shiryaev" Date: Thu, 13 Jan 2022 14:51:48 +0100 Subject: [PATCH] Fix pylint for run_check.py --- tests/ci/run_check.py | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/tests/ci/run_check.py b/tests/ci/run_check.py index 3fe74a5ca8b..78c1f35031a 100644 --- a/tests/ci/run_check.py +++ b/tests/ci/run_check.py @@ -127,13 +127,10 @@ def should_run_checks_for_pr(pr_info): def check_pr_description(pr_info): description = pr_info.body - lines = [ - line - for line in map( - lambda x: x.strip(), description.split("\n") if description else [] - ) - ] - lines = [re.sub(r"\s+", " ", l) for l in lines] + lines = list( + map(lambda x: x.strip(), description.split("\n") if description else []) + ) + lines = [re.sub(r"\s+", " ", line) for line in lines] category = "" entry = "" @@ -198,7 +195,7 @@ def check_pr_description(pr_info): return "" if not entry: - return "Changelog entry required for category '{}'".format(category) + return f"Changelog entry required for category '{category}'" return ""