Skip to content

Lint code

Lint code #1081

Triggered via pull request March 18, 2025 15:29
Status Failure
Total duration 46s
Artifacts

lint.yml

on: pull_request
Get changed files
11s
Get changed files
Check formatting
18s
Check formatting
Check linting
18s
Check linting
Check types with mypy
19s
Check types with mypy
Check docs
25s
Check docs
Fit to window
Zoom out
Zoom in

Annotations

19 errors
Check linting
Process completed with exit code 1.
Check linting: beetsplug/tidal.py#L19
beetsplug/tidal.py:19:33: TC001 Move application import `beets.library.Library` into a type-checking block
Check linting: beetsplug/tidal.py#L19
beetsplug/tidal.py:19:27: TC001 Move application import `beets.library.Item` into a type-checking block
Check linting: beetsplug/tidal.py#L18
beetsplug/tidal.py:18:43: TC001 Move application import `beets.importer.ImportTask` into a type-checking block
Check linting: beetsplug/tidal.py#L18
beetsplug/tidal.py:18:28: TC001 Move application import `beets.importer.ImportSession` into a type-checking block
Check linting: beetsplug/tidal.py#L8
beetsplug/tidal.py:8:1: F404 `from __future__` imports must occur at the beginning of the file
Check linting: beetsplug/tidal.py#L5
beetsplug/tidal.py:5:29: F401 `collections.abc.Callable` imported but unused
Check linting: beetsplug/tidal.py#L2
beetsplug/tidal.py:2:8: TC003 Move standard library import `optparse` into a type-checking block
Check linting: beetsplug/tidal.py#L1
beetsplug/tidal.py:1:1: I001 Import block is un-sorted or un-formatted
Check types with mypy: beets/autotag/mb.py#L249
Missing type parameters for generic type "dict"
Check types with mypy: beets/autotag/mb.py#L201
Missing type parameters for generic type "dict"
Check types with mypy: beets/autotag/mb.py#L187
Missing type parameters for generic type "Sequence"
Check types with mypy: beets/autotag/mb.py#L146
Missing type parameters for generic type "list"
Check types with mypy: beets/plugins.py#L293
Need type annotation for "_instances" (hint: "_instances: dict[<type>, <type>] = ...")
Check types with mypy: beets/util/__init__.py#L821
Argument 4 to "_legalize_stage" has incompatible type "bytes"; expected "str"
Check types with mypy: beets/util/__init__.py#L814
Argument 4 to "_legalize_stage" has incompatible type "bytes"; expected "str"
Check types with mypy: beets/util/__init__.py#L806
Argument 4 to "_legalize_stage" has incompatible type "bytes"; expected "str"
Check types with mypy: beets/util/__init__.py#L803
Incompatible types in assignment (expression has type "str", variable has type "bytes")
Check types with mypy: beets/util/pipeline.py#L91
Missing type parameters for generic type "Queue"