diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1f2961e80e..46aea7c264 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -73,4 +73,4 @@ jobs: - name: Analysing the code with pylint run: | - pylint --rcfile=$(pwd)/.pylintrc --disable=R $(git ls-files '*.py') + pylint --rcfile=$(pwd)/.pylintrc --disable=R,C0301 $(git ls-files '*.py') diff --git a/glue_python/aliyunopentoken/aliyunopentoken.py b/glue_python/aliyunopentoken/aliyunopentoken.py index bd7f49b599..6e0c75034c 100644 --- a/glue_python/aliyunopentoken/aliyunopentoken.py +++ b/glue_python/aliyunopentoken/aliyunopentoken.py @@ -150,6 +150,7 @@ def shutdown(): if re.status_code == 200: re_data = json.loads(re.content) sid = re_data['sid'] + # pylint: disable=C0103 qr_code_url = f"https://www.aliyundrive.com/o/oauth/authorize?sid={sid}" qr = qrcode.QRCode(version=1, error_correction=qrcode.constants.ERROR_CORRECT_H, box_size=5, border=4) qr.add_data(qr_code_url) diff --git a/glue_python/aliyunopentoken/aliyunopentoken_nn.ci.py b/glue_python/aliyunopentoken/aliyunopentoken_nn.ci.py index 69d0c2632b..d562a278fd 100644 --- a/glue_python/aliyunopentoken/aliyunopentoken_nn.ci.py +++ b/glue_python/aliyunopentoken/aliyunopentoken_nn.ci.py @@ -116,6 +116,7 @@ def shutdown(): if re.status_code == 200: re_data = json.loads(re.content) sid = re_data['sid'] + # pylint: disable=C0103 qr_code_url = f"https://www.aliyundrive.com/o/oauth/authorize?sid={sid}" qr = qrcode.QRCode(version=1, error_correction=qrcode.constants.ERROR_CORRECT_H, box_size=5, border=4) qr.add_data(qr_code_url)