mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-20 08:40:50 +00:00
tests/ci/run_check.py: fix pylint warnings
This commit is contained in:
parent
4e2ffbd38c
commit
ce7e18fcb7
@ -1,10 +1,9 @@
|
||||
#!/usr/bin/env python3
|
||||
import os
|
||||
import json
|
||||
import requests
|
||||
from pr_info import PRInfo
|
||||
import sys
|
||||
import logging
|
||||
from pr_info import PRInfo
|
||||
from github import Github
|
||||
from get_robot_token import get_best_robot_token
|
||||
|
||||
@ -70,16 +69,16 @@ TRUSTED_CONTRIBUTORS = {
|
||||
|
||||
def pr_is_by_trusted_user(pr_user_login, pr_user_orgs):
|
||||
if pr_user_login in TRUSTED_CONTRIBUTORS:
|
||||
logging.info("User '{}' is trusted".format(pr_user_login))
|
||||
logging.info("User '%s' is trusted", pr_user_login)
|
||||
return True
|
||||
|
||||
logging.info("User '{}' is not trusted".format(pr_user_login))
|
||||
logging.info("User '%s' is not trusted", pr_user_login)
|
||||
|
||||
for org_id in pr_user_orgs:
|
||||
if org_id in TRUSTED_ORG_IDS:
|
||||
logging.info("Org '{}' is trusted; will mark user {} as trusted".format(org_id, pr_user_login))
|
||||
logging.info("Org '%s' is trusted; will mark user %s as trusted", org_id, pr_user_login)
|
||||
return True
|
||||
logging.info("Org '{}' is not trusted".format(org_id))
|
||||
logging.info("Org '%s' is not trusted", org_id)
|
||||
|
||||
return False
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user