mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 17:12:03 +00:00
Fix pylint for run_check.py
This commit is contained in:
parent
f1b216cac3
commit
89415ff415
@ -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 ""
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user