{"language": "Python", "id": 20, "repo_owner": "skypilot-org", "repo_name": "skypilot", "head_branch": "master", "workflow_name": "Pylint", "workflow_filename": "pylint.yml", "workflow_path": ".github/workflows/pylint.yml", "contributor": "jackyk02", "sha_fail": "b639adb71066410b3b12d97a674ee7fcb51e9980", "sha_success": "a1934063075cb08f0a0041a73026d8ea803617b3", "workflow": "name: Pylint\n\non:\n # Trigger the workflow on push or pull request,\n # but only for the main branch\n push:\n branches:\n - master\n - 'releases/**'\n pull_request:\n branches:\n - master\n - 'releases/**'\n\njobs:\n pylint:\n runs-on: ubuntu-latest\n strategy:\n matrix:\n python-version: [\"3.8\"]\n steps:\n - uses: actions/checkout@v3\n - name: Set up Python ${{ matrix.python-version }}\n uses: actions/setup-python@v4\n with:\n python-version: ${{ matrix.python-version }}\n - name: Install dependencies\n run: |\n python -m pip install --upgrade pip\n pip install \".[all]\"\n pip install pylint==2.8.2\n pip install pylint-quotes==0.2.3\n - name: Analysing the code with pylint\n run: |\n pylint --load-plugins pylint_quotes sky\n", "logs": [{"step_name": "pylint (3.8)/5_Analysing the code with pylint.txt", "log": "##[group]Run pylint --load-plugins pylint_quotes sky\n\u001b[36;1mpylint --load-plugins pylint_quotes sky\u001b[0m\nshell: /usr/bin/bash -e {0}\nenv:\n pythonLocation: /opt/hostedtoolcache/Python/3.8.18/x64\n PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.8.18/x64/lib/pkgconfig\n Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.8.18/x64\n Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.8.18/x64\n Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.8.18/x64\n LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.8.18/x64/lib\n##[endgroup]\n************* Module sky.resources\nsky/resources.py:839:0: C0301: Line too long (81/80) (line-too-long)\n\n------------------------------------\nYour code has been rated at 10.00/10\n\n##[error]Process completed with exit code 16.\n"}], "diff": "diff --git a/sky/resources.py b/sky/resources.py\nindex 2f7aebce..3056e104 100644\n--- a/sky/resources.py\n+++ b/sky/resources.py\n@@ -836,11 +836,11 @@ class Resources:\n image_size = self.cloud.get_image_size(image_id, region)\n if image_size >= self.disk_size:\n with ux_utils.print_exception_no_traceback():\n- size_compare = 'larger than' if image_size > self.disk_size \\\n+ size_comp = 'larger than' if image_size > self.disk_size \\\n else 'equal to'\n raise ValueError(\n f'Image {image_id!r} is {image_size}GB, which is '\n- f'{size_compare} the specified disk_size: '\n+ f'{size_comp} the specified disk_size: '\n f'{self.disk_size} GB. Please specify a larger '\n 'disk_size to use this image.')\n \n", "difficulty": 1, "changed_files": ["sky/resources.py"], "commit_link": "https://github.com/skypilot-org/skypilot/tree/b639adb71066410b3b12d97a674ee7fcb51e9980"} |