fix pylint checks
authorMarcel van der Veldt <m.vanderveldt@outlook.com>
Thu, 30 Jun 2022 21:30:37 +0000 (23:30 +0200)
committerMarcel van der Veldt <m.vanderveldt@outlook.com>
Thu, 30 Jun 2022 21:30:37 +0000 (23:30 +0200)
music_assistant/controllers/metadata/__init__.py
music_assistant/models/media_items.py
music_assistant/music_providers/tunein.py
pylintrc

index 31c03f8e1e11edae7d4887a649908a17dc2f1666..d402ea4e9e156ddc064741d013a249657e5fe17f 100755 (executable)
@@ -110,7 +110,6 @@ class MetaDataController:
         playlist.metadata.last_refresh = int(time())
 
     async def get_radio_metadata(self, radio: Radio) -> None:
-        # pylint: disable=no-self-use
         """Get/update rich metadata for a radio station."""
         # NOTE: we do not have any metadata for radiso so consider this future proofing ;-)
         radio.metadata.last_refresh = int(time())
index 7b89b001a74f2b9097f8d5194f2e5f0bf1e69ef5..3802b6e4ceafea62cac3914fcc0be5cc79e96b80 100755 (executable)
@@ -396,7 +396,6 @@ class StreamDetails(DataClassDictMixin):
 
     def __post_serialize__(self, d: Dict[Any, Any]) -> Dict[Any, Any]:
         """Exclude internal fields from dict."""
-        # pylint: disable=no-self-use
         d.pop("data")
         d.pop("expires")
         d.pop("queue_id")
index 85fe7962f38d5be810d93e393a5792e28f8c5bc3..9d61619270eff1197c331b902aa909c473fc9c74 100644 (file)
@@ -54,7 +54,6 @@ class TuneInProvider(MusicProvider):
             :param media_types: A list of media_types to include. All types if None.
             :param limit: Number of items to return in the search (per type).
         """
-        # pylint: disable=no-self-use
         # TODO: search for radio stations
         return []
 
index 140afcb243a8eac9a1edfc48fa709ae70c73cefb..132149f70657f7cdcda3429c6053a6daf48a6b17 100644 (file)
--- a/pylintrc
+++ b/pylintrc
@@ -29,7 +29,6 @@ good-names=id,i,j,k,ex,Run,_,fp,T,ev,db,d
 # fixme - project is in development phase
 disable=
   format,
-  abstract-class-little-used,
   abstract-method,
   cyclic-import,
   duplicate-code,