Repository: skypilot-org/skypilot (branch: master)
Commit date: 2023-11-07T23:36:12Z

Workflow file: .github/workflows/pylint.yml (Pylint)
name: Pylint

on:
  # Trigger the workflow on push or pull request,
  # but only for the main branch
  push:
    branches:
      - master
      - 'releases/**'
  pull_request:
    branches:
      - master
      - 'releases/**'

jobs:
  pylint:
    runs-on: ubuntu-latest
    services:
      pypi_wayback:
        image: ghcr.io/waleko/pypi-wayback
        ports:
          - 8629:8080
    strategy:
      matrix:
        python-version: ["3.8"]
    steps:
    - uses: actions/checkout@v3
    - name: Set up Python ${{ matrix.python-version }}
      uses: actions/setup-python@v4
      with:
        python-version: ${{ matrix.python-version }}
    - name: Install dependencies
      run: |
        python -m pip install --upgrade pip
        pip install ".[all]"
        pip install pylint==2.8.2
        pip install pylint-quotes==0.2.3
    - name: Analysing the code with pylint
      run: |
        pylint --load-plugins pylint_quotes sky

env:
  PIP_INDEX_URL: http://localhost:8629/2023-11-07
  UV_INDEX_URL: http://localhost:8629/2023-11-07


Failed build logs:
step_name: pylint (3.8)/5_Analysing the code with pylint.txt
log: ##[group]Run pylint --load-plugins pylint_quotes sky
[36;1mpylint --load-plugins pylint_quotes sky[0m
shell: /usr/bin/bash -e {0}
env:
  pythonLocation: /opt/hostedtoolcache/Python/3.8.18/x64
  PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.8.18/x64/lib/pkgconfig
  Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.8.18/x64
  Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.8.18/x64
  Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.8.18/x64
  LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.8.18/x64/lib
##[endgroup]
************* Module sky.resources
sky/resources.py:839:0: C0301: Line too long (81/80) (line-too-long)

------------------------------------
Your code has been rated at 10.00/10

##[error]Process completed with exit code 16.


Changed files:
sky/resources.py

Fix diff:
diff --git a/sky/resources.py b/sky/resources.py
index 2f7aebce..3056e104 100644
--- a/sky/resources.py
+++ b/sky/resources.py
@@ -836,11 +836,11 @@ class Resources:
             image_size = self.cloud.get_image_size(image_id, region)
             if image_size >= self.disk_size:
                 with ux_utils.print_exception_no_traceback():
-                    size_compare = 'larger than' if image_size > self.disk_size \
+                    size_comp = 'larger than' if image_size > self.disk_size \
                         else 'equal to'
                     raise ValueError(
                         f'Image {image_id!r} is {image_size}GB, which is '
-                        f'{size_compare} the specified disk_size: '
+                        f'{size_comp} the specified disk_size: '
                         f'{self.disk_size} GB. Please specify a larger '
                         'disk_size to use this image.')