Bump pytest from 7.4.0 to 7.4.3 (#895)
authordependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Fri, 27 Oct 2023 12:23:13 +0000 (14:23 +0200)
committerGitHub <noreply@github.com>
Fri, 27 Oct 2023 12:23:13 +0000 (14:23 +0200)
* Bump pytest from 7.4.0 to 7.4.3

Bumps [pytest](https://github.com/pytest-dev/pytest) from 7.4.0 to 7.4.3.
- [Release notes](https://github.com/pytest-dev/pytest/releases)
- [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest/compare/7.4.0...7.4.3)

---
updated-dependencies:
- dependency-name: pytest
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
* lint fixes

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Marcel van der Veldt <m.vanderveldt@outlook.com>
music_assistant/server/controllers/metadata.py
music_assistant/server/helpers/database.py
music_assistant/server/helpers/tags.py
music_assistant/server/providers/filesystem_local/base.py
pyproject.toml

index 338abbff4552c8e53f6fd24345a85537b2d646a4..33828769a40b9f57c6dfb096a0b0d441c989d139 100755 (executable)
@@ -208,7 +208,7 @@ class MetaDataController(CoreController):
             # if playlist has no default image (e.g. a local playlist)
             if images and (not playlist.image or playlist.image.provider != "url"):
                 if playlist.image and self.mass.storage_path in playlist.image.path:
-                    # re-use previous created path
+                    # reuse previous created path
                     img_path = playlist.image.path
                 else:
                     img_path = os.path.join(self.mass.storage_path, f"{uuid4().hex}.png")
index f50726751b3c007167686db82570d21b6c8f39cc..89e927218a15acd6839440e0c2accac08b4fe058 100755 (executable)
@@ -101,7 +101,7 @@ class DatabaseConnection:
             sql_query = f'INSERT OR REPLACE INTO {table}({",".join(keys)})'
         else:
             sql_query = f'INSERT INTO {table}({",".join(keys)})'
-        sql_query += f' VALUES ({",".join((f":{x}" for x in keys))})'
+        sql_query += f' VALUES ({",".join(f":{x}" for x in keys)})'
         await self.execute(sql_query, values)
         await self._db.commit()
         # return inserted/replaced item
@@ -120,7 +120,7 @@ class DatabaseConnection:
     ) -> Mapping:
         """Update record."""
         keys = tuple(values.keys())
-        sql_query = f'UPDATE {table} SET {",".join((f"{x}=:{x}" for x in keys))} WHERE '
+        sql_query = f'UPDATE {table} SET {",".join(f"{x}=:{x}" for x in keys)} WHERE '
         sql_query += " AND ".join(f"{x} = :{x}" for x in match)
         await self.execute(sql_query, {**match, **values})
         await self._db.commit()
index d309173d6c5821bcb3805f1924d1f837e44322d4..b6496e35adbd435e26bd9edb7eb1db1613aa074d 100644 (file)
@@ -20,7 +20,7 @@ LOGGER = logging.getLogger(ROOT_LOGGER_NAME).getChild("tags")
 
 # the only multi-item splitter we accept is the semicolon,
 # which is also the default in Musicbrainz Picard.
-# the slash is also a common splitter but causes colissions with
+# the slash is also a common splitter but causes collisions with
 # artists actually containing a slash in the name, such as ACDC
 TAG_SPLITTER = ";"
 
index d8962f7451501b69d57d7726c73c1891af8e2e7f..d7805e744398d7b4c8822c6d1a195ec44eba1dbc 100644 (file)
@@ -703,7 +703,7 @@ class FileSystemProviderBase(MusicProvider):
 
         # track artist(s)
         for index, track_artist_str in enumerate(tags.artists):
-            # re-use album artist details if possible
+            # reuse album artist details if possible
             if track.album and (
                 album_artist := next(
                     (x for x in track.album.artists if x.name == track_artist_str), None
index 64835075776a7b8adfcfbcfaeeb1194adaabe2e7..2ff69f5070ad5ee2c55ae7ec3e16d8a80af9c8c2 100644 (file)
@@ -53,7 +53,7 @@ test = [
   "codespell==2.2.5",
   "mypy==1.5.1",
   "ruff==0.1.1",
-  "pytest==7.4.0",
+  "pytest==7.4.3",
   "pytest-asyncio==0.21.1",
   "pytest-aiohttp==1.0.4",
   "pytest-cov==4.1.0",