Repository: mikf/gallery-dl (branch: master)
Commit date: 2024-01-08T08:15:08Z

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-08
  UV_INDEX_URL: http://localhost:8629/2024-01-08


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/500px.py:82:1: W293 blank line contains whitespace
##[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/500px.py:82:1: W293 blank line contains whitespace
##[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/500px.py:82:1: W293 blank line contains whitespace
##[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/500px.py:82:1: W293 blank line contains whitespace
##[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/500px.py:82:1: W293 blank line contains whitespace
##[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/500px.py:82:1: W293 blank line contains whitespace
##[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/500px.py:82:1: W293 blank line contains whitespace
##[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/500px.py:82:1: W293 blank line contains whitespace
##[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/500px.py:82:1: W293 blank line contains whitespace
##[error]Process completed with exit code 1.


Changed files:
gallery_dl/extractor/500px.py

Fix diff:
diff --git a/gallery_dl/extractor/500px.py b/gallery_dl/extractor/500px.py
index c665bcb4..2b9e909c 100644
--- a/gallery_dl/extractor/500px.py
+++ b/gallery_dl/extractor/500px.py
@@ -79,7 +79,7 @@ class _500pxExtractor(Extractor):
                 result.append(fallbacks[pid])
             else:
                 self.log.warning("Unable to fetch photo %s", pid)
-        
+
         return result
 
     def _request_api(self, url, params):