Repository: mikf/gallery-dl (branch: steamgriddb)
Commit date: 2024-01-09T06:12:56Z

Workflow file: .github/workflows/tests.yml (tests)
name: tests

on:
  push:
    branches:
    - master
  pull_request:
    branches:
    - master

jobs:
  build:

    runs-on: ubuntu-20.04

    services:

      pypi_wayback:

        image: ghcr.io/waleko/pypi-wayback

        ports:

          - 8629:8080
    strategy:
      fail-fast: false
      matrix:
        python-version: ["3.5", "3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "pypy3.9"]

    steps:
    - uses: actions/checkout@v4

    - name: Check file permissions
      run: |
        if [[ "$(find ./gallery_dl -type f -not -perm 644)" ]]; then exit 1; fi

    - name: Set up Python ${{ matrix.python-version }}
      uses: actions/setup-python@v4
      with:
        python-version: ${{ matrix.python-version }}

    - name: Install dependencies
      run: |
        pip install -r requirements.txt
        pip install flake8 youtube-dl

    - name: Install yt-dlp
      run: |
        case "${{ matrix.python-version }}" in
            3.4|3.5)
                # don't install yt-dlp
                ;;
            3.6|3.7)
                # install from PyPI
                pip install yt-dlp
                ;;
            *)
                # install from master
                pip install https://github.com/yt-dlp/yt-dlp/archive/refs/heads/master.tar.gz
                ;;
        esac

    - name: Lint with flake8
      run: |
        case "${{ matrix.python-version }}" in
            3.4|3.5|3.6|3.7)
                flake8 --extend-exclude scripts/export_tests.py .
                ;;
            *)
                flake8 .
                ;;
        esac

    - name: Run tests
      run: |
        make test

    - name: Test autogeneration of man pages, bash/zsh/fish completion, etc
      run: |
        make

env:
  PIP_INDEX_URL: http://localhost:8629/2024-01-09
  UV_INDEX_URL: http://localhost:8629/2024-01-09


Failed build logs:
step_name: build (3.5)/7_Lint with flake8.txt
log: ##[group]Run case "3.5" in
[36;1mcase "3.5" in[0m
[36;1m    3.4|3.5|3.6|3.7)[0m
[36;1m        flake8 --extend-exclude scripts/export_tests.py .[0m
[36;1m        ;;[0m
[36;1m    *)[0m
[36;1m        flake8 .[0m
[36;1m        ;;[0m
[36;1mesac[0m
shell: /usr/bin/bash -e {0}
env:
  pythonLocation: /opt/hostedtoolcache/Python/3.5.10/x64
  PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.5.10/x64/lib/pkgconfig
  Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.5.10/x64
  Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.5.10/x64
  Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.5.10/x64
  LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.5.10/x64/lib
##[endgroup]
./gallery_dl/extractor/steamgriddb.py:176:80: E501 line too long (80 > 79 characters)
##[error]Process completed with exit code 1.

step_name: build (3.6)/7_Lint with flake8.txt
log: ##[group]Run case "3.6" in
[36;1mcase "3.6" in[0m
[36;1m    3.4|3.5|3.6|3.7)[0m
[36;1m        flake8 --extend-exclude scripts/export_tests.py .[0m
[36;1m        ;;[0m
[36;1m    *)[0m
[36;1m        flake8 .[0m
[36;1m        ;;[0m
[36;1mesac[0m
shell: /usr/bin/bash -e {0}
env:
  pythonLocation: /opt/hostedtoolcache/Python/3.6.15/x64
  PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.6.15/x64/lib/pkgconfig
  Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.6.15/x64
  Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.6.15/x64
  Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.6.15/x64
  LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.6.15/x64/lib
##[endgroup]
./gallery_dl/extractor/steamgriddb.py:176:80: E501 line too long (80 > 79 characters)
##[error]Process completed with exit code 1.

step_name: build (3.7)/7_Lint with flake8.txt
log: ##[group]Run case "3.7" in
[36;1mcase "3.7" in[0m
[36;1m    3.4|3.5|3.6|3.7)[0m
[36;1m        flake8 --extend-exclude scripts/export_tests.py .[0m
[36;1m        ;;[0m
[36;1m    *)[0m
[36;1m        flake8 .[0m
[36;1m        ;;[0m
[36;1mesac[0m
shell: /usr/bin/bash -e {0}
env:
  pythonLocation: /opt/hostedtoolcache/Python/3.7.17/x64
  PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.7.17/x64/lib/pkgconfig
  Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.7.17/x64
  Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.7.17/x64
  Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.7.17/x64
  LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.7.17/x64/lib
##[endgroup]
./gallery_dl/extractor/steamgriddb.py:176:80: E501 line too long (80 > 79 characters)
##[error]Process completed with exit code 1.

step_name: build (3.8)/7_Lint with flake8.txt
log: ##[group]Run case "3.8" in
[36;1mcase "3.8" in[0m
[36;1m    3.4|3.5|3.6|3.7)[0m
[36;1m        flake8 --extend-exclude scripts/export_tests.py .[0m
[36;1m        ;;[0m
[36;1m    *)[0m
[36;1m        flake8 .[0m
[36;1m        ;;[0m
[36;1mesac[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]
./gallery_dl/extractor/steamgriddb.py:176:80: E501 line too long (80 > 79 characters)
##[error]Process completed with exit code 1.

step_name: build (3.9)/7_Lint with flake8.txt
log: ##[group]Run case "3.9" in
[36;1mcase "3.9" in[0m
[36;1m    3.4|3.5|3.6|3.7)[0m
[36;1m        flake8 --extend-exclude scripts/export_tests.py .[0m
[36;1m        ;;[0m
[36;1m    *)[0m
[36;1m        flake8 .[0m
[36;1m        ;;[0m
[36;1mesac[0m
shell: /usr/bin/bash -e {0}
env:
  pythonLocation: /opt/hostedtoolcache/Python/3.9.18/x64
  PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.9.18/x64/lib/pkgconfig
  Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.9.18/x64
  Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.9.18/x64
  Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.9.18/x64
  LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.9.18/x64/lib
##[endgroup]
./gallery_dl/extractor/steamgriddb.py:176:80: E501 line too long (80 > 79 characters)
##[error]Process completed with exit code 1.

step_name: build (3.10)/7_Lint with flake8.txt
log: ##[group]Run case "3.10" in
[36;1mcase "3.10" in[0m
[36;1m    3.4|3.5|3.6|3.7)[0m
[36;1m        flake8 --extend-exclude scripts/export_tests.py .[0m
[36;1m        ;;[0m
[36;1m    *)[0m
[36;1m        flake8 .[0m
[36;1m        ;;[0m
[36;1mesac[0m
shell: /usr/bin/bash -e {0}
env:
  pythonLocation: /opt/hostedtoolcache/Python/3.10.13/x64
  PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.10.13/x64/lib/pkgconfig
  Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.10.13/x64
  Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.10.13/x64
  Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.10.13/x64
  LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.10.13/x64/lib
##[endgroup]
./gallery_dl/extractor/steamgriddb.py:176:80: E501 line too long (80 > 79 characters)
##[error]Process completed with exit code 1.

step_name: build (3.11)/7_Lint with flake8.txt
log: ##[group]Run case "3.11" in
[36;1mcase "3.11" in[0m
[36;1m    3.4|3.5|3.6|3.7)[0m
[36;1m        flake8 --extend-exclude scripts/export_tests.py .[0m
[36;1m        ;;[0m
[36;1m    *)[0m
[36;1m        flake8 .[0m
[36;1m        ;;[0m
[36;1mesac[0m
shell: /usr/bin/bash -e {0}
env:
  pythonLocation: /opt/hostedtoolcache/Python/3.11.7/x64
  PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.11.7/x64/lib/pkgconfig
  Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.11.7/x64
  Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.11.7/x64
  Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.11.7/x64
  LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.11.7/x64/lib
##[endgroup]
./gallery_dl/extractor/steamgriddb.py:176:80: E501 line too long (80 > 79 characters)
##[error]Process completed with exit code 1.

step_name: build (3.12)/7_Lint with flake8.txt
log: ##[group]Run case "3.12" in
[36;1mcase "3.12" in[0m
[36;1m    3.4|3.5|3.6|3.7)[0m
[36;1m        flake8 --extend-exclude scripts/export_tests.py .[0m
[36;1m        ;;[0m
[36;1m    *)[0m
[36;1m        flake8 .[0m
[36;1m        ;;[0m
[36;1mesac[0m
shell: /usr/bin/bash -e {0}
env:
  pythonLocation: /opt/hostedtoolcache/Python/3.12.1/x64
  PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.12.1/x64/lib/pkgconfig
  Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.1/x64
  Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.1/x64
  Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.1/x64
  LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.1/x64/lib
##[endgroup]
./gallery_dl/extractor/steamgriddb.py:176:80: E501 line too long (80 > 79 characters)
##[error]Process completed with exit code 1.

step_name: build (pypy3.9)/7_Lint with flake8.txt
log: ##[group]Run case "pypy3.9" in
[36;1mcase "pypy3.9" in[0m
[36;1m    3.4|3.5|3.6|3.7)[0m
[36;1m        flake8 --extend-exclude scripts/export_tests.py .[0m
[36;1m        ;;[0m
[36;1m    *)[0m
[36;1m        flake8 .[0m
[36;1m        ;;[0m
[36;1mesac[0m
shell: /usr/bin/bash -e {0}
env:
  pythonLocation: /opt/hostedtoolcache/PyPy/3.9.18/x64
  Python_ROOT_DIR: /opt/hostedtoolcache/PyPy/3.9.18/x64
  Python2_ROOT_DIR: /opt/hostedtoolcache/PyPy/3.9.18/x64
  Python3_ROOT_DIR: /opt/hostedtoolcache/PyPy/3.9.18/x64
  PKG_CONFIG_PATH: /opt/hostedtoolcache/PyPy/3.9.18/x64/bin/lib/pkgconfig
##[endgroup]
./gallery_dl/extractor/steamgriddb.py:176:80: E501 line too long (80 > 79 characters)
##[error]Process completed with exit code 1.


Changed files:
gallery_dl/extractor/steamgriddb.py

Fix diff:
diff --git a/gallery_dl/extractor/steamgriddb.py b/gallery_dl/extractor/steamgriddb.py
index 516c422b..1f803ffd 100644
--- a/gallery_dl/extractor/steamgriddb.py
+++ b/gallery_dl/extractor/steamgriddb.py
@@ -173,7 +173,8 @@ class SteamgriddbGridsExtractor(SteamgriddbAssetsExtractor):
     example = "https://www.steamgriddb.com/game/1234/grids"
     valid_dimensions = ("460x215", "920x430", "600x900", "342x482", "660x930",
                         "512x512", "1024x1024")
-    valid_styles = ("alternate", "blurred", "no_logo", "material", "white_logo")
+    valid_styles = ("alternate", "blurred", "no_logo", "material",
+                    "white_logo")
     valid_file_types = ("png", "jpeg", "jpg", "webp")