{"language": "Python", "id": 41, "repo_owner": "beetbox", "repo_name": "beets", "head_branch": "lb", "workflow_name": "Check code formatting", "workflow_filename": "formatting_check.yml", "workflow_path": ".github/workflows/formatting_check.yml", "contributor": "arsaboo", "sha_fail": "454164496177fd8b9d6aad4f106e68e816becb6c", "sha_success": "0ed65564b30e002d7f5884e32132098542c3c7dd", "workflow": "name: formatting_check\nrun-name: Check code formatting\non: [push, pull_request]\njobs:\n formatting_check:\n runs-on: ubuntu-latest\n steps:\n - name: Install dependencies\n uses: actions/checkout@v3\n\n - name: Run formatting check\n uses: paolorechia/[email protected]\n with:\n tox_env: \"format_check\"\n", "logs": [{"step_name": "formatting_check/3_Run formatting check.txt", "log": "##[group]Run paolorechia/[email protected]\nwith:\n tox_env: format_check\n##[endgroup]\nstdout: Defaulting to user installation because normal site-packages is not writeable\n\nstdout: Collecting tox\n\nstdout: Downloading tox-4.11.4-py3-none-any.whl (153 kB)\n\nstdout: \u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501 154.0/154.0 KB 5.2 MB/s eta 0:00:00\nstdout: \n\nstdout: Collecting pyproject-api>=1.6.1\n\nstdout: Downloading pyproject_api-1.6.1-py3-none-any.whl (12 kB)\n\nstdout: Collecting colorama>=0.4.6\n\nstdout: Downloading colorama-0.4.6-py2.py3-none-any.whl (25 kB)\n\nstdout: Collecting filelock>=3.12.3\n\nstdout: Downloading filelock-3.13.1-py3-none-any.whl (11 kB)\n\nstdout: Requirement already satisfied: tomli>=2.0.1 in /usr/local/lib/python3.10/dist-packages (from tox) (2.0.1)\n\nstdout: Collecting pluggy>=1.3\n\nstdout: Downloading pluggy-1.3.0-py3-none-any.whl (18 kB)\n\nstdout: Collecting chardet>=5.2\n\nstdout: Downloading chardet-5.2.0-py3-none-any.whl (199 kB)\n\nstdout: \u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501 199.4/199.4 KB 9.1 MB/s eta 0:00:00\nstdout: \n\nstdout: Requirement already satisfied: packaging>=23.1 in /usr/local/lib/python3.10/dist-packages (from tox) (23.2)\n\nstdout: Collecting virtualenv>=20.24.3\n\nstdout: Downloading virtualenv-20.25.0-py3-none-any.whl (3.8 MB)\n\nstdout: \u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501 3.8/3.8 MB 18.1 MB/s eta 0:00:00\nstdout: \n\nstdout: Collecting cachetools>=5.3.1\n\nstdout: Downloading cachetools-5.3.2-py3-none-any.whl (9.3 kB)\n\nstdout: Requirement already satisfied: platformdirs>=3.10 in /usr/local/lib/python3.10/dist-packages (from tox) (4.1.0)\n\nstdout: Collecting distlib<1,>=0.3.7\n\nstdout: Downloading distlib-0.3.8-py2.py3-none-any.whl (468 kB)\n\nstdout: \u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501 468.9/468.9 KB 30.1 MB/s eta 0:00:00\nstdout: \n\nstdout: Installing collected packages: distlib, pyproject-api, pluggy, filelock, colorama, chardet, cachetools, virtualenv, tox\n\nstdout: Successfully installed cachetools-5.3.2 chardet-5.2.0 colorama-0.4.6 distlib-0.3.8 filelock-3.13.1 pluggy-1.3.0 pyproject-api-1.6.1 tox-4.11.4 virtualenv-20.25.0\n\nReceived 6565789 of 6565789 (100.0%), 7.4 MBs/sec\nCache Size: ~6 MB (6565789 B)\n[command]/usr/bin/tar -z -xf /home/runner/work/_temp/2ecbc63f-4679-45d0-8b2e-0acac9db60db/cache.tgz -P -C /home/runner/work/beets/beets\nCache restored successfully\nHit cache on tox\nstdout: format_check: recreate env because python changed virtualenv version='20.24.5'->'20.25.0'\n\nstdout: format_check: remove tox env folder /home/runner/work/beets/beets/.tox/format_check\n\nstdout: format_check: install_deps> python -I -m pip install black isort\n\nstdout: format_check: commands[0]> isort beets beetsplug test --check\n\nstderr: ERROR: /home/runner/work/beets/beets/beetsplug/listenbrainz.py Imports are incorrectly sorted and/or formatted.\n\nstdout: format_check: exit 1 (0.57 seconds) /home/runner/work/beets/beets> isort beets beetsplug test --check pid=1921\n\nstdout: format_check: FAIL code 1 (4.17=setup[3.60]+cmd[0.57] seconds)\n evaluation failed :( (4.22 seconds)\n\nchild process exited with code 1\n##[warning]The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/\n##[error]Tox failed\n"}], "diff": "diff --git a/beetsplug/listenbrainz.py b/beetsplug/listenbrainz.py\nindex bb5020902..a5595642f 100644\n--- a/beetsplug/listenbrainz.py\n+++ b/beetsplug/listenbrainz.py\n@@ -4,13 +4,15 @@ import datetime\n \n import musicbrainzngs\n import requests\n+\n from beets import config, ui\n from beets.plugins import BeetsPlugin\n from beetsplug.lastimport import process_tracks\n \n \n class ListenBrainzPlugin(BeetsPlugin):\n- \"\"\" A Beets plugin for interacting with ListenBrainz.\"\"\"\n+ \"\"\"A Beets plugin for interacting with ListenBrainz.\"\"\"\n+\n data_source = \"ListenBrainz\"\n ROOT = \"http://api.listenbrainz.org/1/\"\n \n@@ -101,7 +103,6 @@ class ListenBrainzPlugin(BeetsPlugin):\n else:\n return None\n \n-\n def get_tracks_from_listens(self, listens):\n \"\"\"Returns a list of tracks from a list of listens.\"\"\"\n tracks = []\n", "difficulty": 0, "changed_files": ["beetsplug/listenbrainz.py"], "commit_link": "https://github.com/beetbox/beets/tree/454164496177fd8b9d6aad4f106e68e816becb6c"} |