Skip to content

Lint code

Lint code #1212

Triggered via pull request March 13, 2026 04:40
Status Failure
Total duration 45s
Artifacts

lint.yaml

on: pull_request
Get changed files
12s
Get changed files
Check formatting
14s
Check formatting
Check linting
15s
Check linting
Check types with mypy
27s
Check types with mypy
Check docs
0s
Check docs
Fit to window
Zoom out
Zoom in

Annotations

14 errors and 4 warnings
Check linting
Process completed with exit code 1.
ruff (UP012): test/test_art_resize.py#L120
test/test_art_resize.py:120:37: UP012 Unnecessary call to `encode` as UTF-8 help: Rewrite as bytes literal
ruff (RUF059): test/test_art_resize.py#L119
test/test_art_resize.py:119:16: RUF059 Unpacked variable `ext` is never used help: Prefix it with an underscore or any other dummy variable pattern
ruff (UP012): test/test_art_resize.py#L110
test/test_art_resize.py:110:37: UP012 Unnecessary call to `encode` as UTF-8 help: Rewrite as bytes literal
ruff (RUF059): beets/util/artresizer.py#L632
beets/util/artresizer.py:632:20: RUF059 Unpacked variable `ext` is never used help: Prefix it with an underscore or any other dummy variable pattern
ruff (RUF005): beets/util/artresizer.py#L286
beets/util/artresizer.py:286:15: RUF005 Consider iterable unpacking instead of concatenation help: Replace with iterable unpacking
ruff (F841): beets/util/artresizer.py#L280
beets/util/artresizer.py:280:13: F841 Local variable `size` is assigned to but never used help: Remove assignment to unused variable `size`
ruff (F401): beets/util/artresizer.py#L27
beets/util/artresizer.py:27:24: F401 `contextlib.suppress` imported but unused help: Remove unused import: `contextlib.suppress`
Check types with mypy
The process '/opt/pipx_bin/poe' failed with exit code 1
Check types with mypy: beetsplug/fetchart.py#L226
Argument 1 to "get_format" of "ArtResizer" has incompatible type "bytes | None"; expected "bytes"
Check types with mypy: beetsplug/fetchart.py#L217
Argument 1 to "syspath" has incompatible type "bytes | None"; expected "str | Path | bytes"
Check types with mypy: beetsplug/fetchart.py#L213
Value of type "tuple[int, int] | None" is not indexable
Check types with mypy: beetsplug/fetchart.py#L89
Value of type "tuple[int, int] | None" is not indexable
Check types with mypy: beets/util/artresizer.py#L259
Missing return statement
Get changed files
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: tj-actions/changed-files@v46. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
Check formatting
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: BrandonLWhite/pipx-install-action@v1.0.3. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
Check linting
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: BrandonLWhite/pipx-install-action@v1.0.3. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
Check types with mypy
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: BrandonLWhite/pipx-install-action@v1.0.3, liskin/gh-problem-matcher-wrap@v3. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/