[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
6a7a23cd9a
commit
879591e1cc
|
@ -19,13 +19,6 @@ license = {text = "Apache-2.0"}
|
|||
maintainers = [{name = "Hugo van Kemenade"}]
|
||||
authors = [{name = "Amr Hassan <amr.hassan@gmail.com> and Contributors", email = "amr.hassan@gmail.com"}]
|
||||
requires-python = ">=3.7"
|
||||
dependencies = [
|
||||
"httpx",
|
||||
'importlib-metadata; python_version < "3.8"',
|
||||
]
|
||||
dynamic = [
|
||||
"version",
|
||||
]
|
||||
classifiers = [
|
||||
"Development Status :: 5 - Production/Stable",
|
||||
"License :: OSI Approved :: Apache Software License",
|
||||
|
@ -42,6 +35,13 @@ classifiers = [
|
|||
"Topic :: Multimedia :: Sound/Audio",
|
||||
"Topic :: Software Development :: Libraries :: Python Modules",
|
||||
]
|
||||
dynamic = [
|
||||
"version",
|
||||
]
|
||||
dependencies = [
|
||||
"httpx",
|
||||
'importlib-metadata; python_version < "3.8"',
|
||||
]
|
||||
[project.optional-dependencies]
|
||||
tests = [
|
||||
"flaky",
|
||||
|
@ -50,13 +50,11 @@ tests = [
|
|||
"pytest-random-order",
|
||||
"pyyaml",
|
||||
]
|
||||
|
||||
[project.urls]
|
||||
Changelog = "https://github.com/pylast/pylast/releases"
|
||||
Homepage = "https://github.com/pylast/pylast"
|
||||
Source = "https://github.com/pylast/pylast"
|
||||
|
||||
|
||||
[tool.hatch]
|
||||
version.source = "vcs"
|
||||
|
||||
|
|
|
@ -546,7 +546,6 @@ class _Network:
|
|||
context=None,
|
||||
mbid=None,
|
||||
):
|
||||
|
||||
"""Used to add a track-play to a user's profile.
|
||||
|
||||
Parameters:
|
||||
|
@ -600,7 +599,6 @@ class _Network:
|
|||
|
||||
params = {}
|
||||
for i in range(len(tracks_to_scrobble)):
|
||||
|
||||
params[f"artist[{i}]"] = tracks_to_scrobble[i]["artist"]
|
||||
params[f"track[{i}]"] = tracks_to_scrobble[i]["title"]
|
||||
|
||||
|
@ -621,7 +619,6 @@ class _Network:
|
|||
}
|
||||
|
||||
for arg in additional_args:
|
||||
|
||||
if arg in tracks_to_scrobble[i] and tracks_to_scrobble[i][arg]:
|
||||
if arg in args_map_to:
|
||||
maps_to = args_map_to[arg]
|
||||
|
@ -736,7 +733,6 @@ class LibreFMNetwork(_Network):
|
|||
username: str = "",
|
||||
password_hash: str = "",
|
||||
) -> None:
|
||||
|
||||
super().__init__(
|
||||
name="Libre.fm",
|
||||
homepage="https://libre.fm",
|
||||
|
|
|
@ -47,7 +47,6 @@ def _no_xfail_rerun_filter(err, name, test, plugin) -> bool:
|
|||
|
||||
@flaky(max_runs=3, min_passes=1, rerun_filter=_no_xfail_rerun_filter)
|
||||
class TestPyLastWithLastFm(PyLastTestCase):
|
||||
|
||||
secrets = None
|
||||
|
||||
def unix_timestamp(self):
|
||||
|
|
8
tox.ini
8
tox.ini
|
@ -5,23 +5,23 @@ envlist =
|
|||
isolated_build = true
|
||||
|
||||
[testenv]
|
||||
extras =
|
||||
tests
|
||||
passenv =
|
||||
FORCE_COLOR
|
||||
PYLAST_API_KEY
|
||||
PYLAST_API_SECRET
|
||||
PYLAST_PASSWORD_HASH
|
||||
PYLAST_USERNAME
|
||||
extras =
|
||||
tests
|
||||
commands =
|
||||
pytest -v -s -W all --cov pylast --cov tests --cov-report term-missing --cov-report xml --random-order {posargs}
|
||||
|
||||
[testenv:lint]
|
||||
passenv =
|
||||
PRE_COMMIT_COLOR
|
||||
skip_install = true
|
||||
deps =
|
||||
pre-commit
|
||||
passenv =
|
||||
PRE_COMMIT_COLOR
|
||||
commands =
|
||||
pre-commit run --all-files --show-diff-on-failure
|
||||
|
||||
|
|
Loading…
Reference in a new issue