From 63fe9411f08cd7df1959f94179e5a14fb71b52ec Mon Sep 17 00:00:00 2001 From: Marcel van der Veldt Date: Tue, 5 Apr 2022 14:57:06 +0200 Subject: [PATCH] linting --- .dockerignore | 2 +- .github/dependabot.yml | 2 +- .github/release-drafter.yml | 2 +- .github/workflows/pre-commit-updater.yml | 4 ++-- .vscode/settings.json | 2 +- MANIFEST.in | 2 +- music_assistant/models/media_items.py | 1 + requirements.txt | 2 +- setup.cfg | 2 +- 9 files changed, 10 insertions(+), 9 deletions(-) diff --git a/.dockerignore b/.dockerignore index 029ac7c4..7368f5cc 100644 --- a/.dockerignore +++ b/.dockerignore @@ -5,4 +5,4 @@ build dist venv -**/__pycache__ \ No newline at end of file +**/__pycache__ diff --git a/.github/dependabot.yml b/.github/dependabot.yml index c2b300b9..ec8bf989 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -7,4 +7,4 @@ updates: - package-ecosystem: "pip" directory: "/" schedule: - interval: weekly \ No newline at end of file + interval: weekly diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml index 1737036a..e77435ba 100644 --- a/.github/release-drafter.yml +++ b/.github/release-drafter.yml @@ -5,4 +5,4 @@ categories: - "dependencies" template: | ## What's Changed - $CHANGES \ No newline at end of file + $CHANGES diff --git a/.github/workflows/pre-commit-updater.yml b/.github/workflows/pre-commit-updater.yml index 14442f6e..2c3b448a 100644 --- a/.github/workflows/pre-commit-updater.yml +++ b/.github/workflows/pre-commit-updater.yml @@ -23,6 +23,6 @@ jobs: title: Auto-update pre-commit hooks commit-message: Auto-update pre-commit hooks body: | - Update versions of tools in pre-commit + Update versions of tools in pre-commit configs to latest version - labels: dependencies \ No newline at end of file + labels: dependencies diff --git a/.vscode/settings.json b/.vscode/settings.json index efcfe8f4..d63891a6 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -6,4 +6,4 @@ "python.linting.flake8Enabled": true, "python.linting.flake8Args": ["--config=${workspaceFolder}/setup.cfg"], "python.linting.mypyEnabled": false, -} \ No newline at end of file +} diff --git a/MANIFEST.in b/MANIFEST.in index fb7d2820..f50f2176 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -2,4 +2,4 @@ include *.txt include README.rst include LICENSE.md graft music_assistant -recursive-exclude * *.py[co] \ No newline at end of file +recursive-exclude * *.py[co] diff --git a/music_assistant/models/media_items.py b/music_assistant/models/media_items.py index 82166fe6..0bd1579a 100755 --- a/music_assistant/models/media_items.py +++ b/music_assistant/models/media_items.py @@ -300,6 +300,7 @@ class StreamDetails(DataClassDictMixin): def __post_serialize__(self, d: Dict[Any, Any]) -> Dict[Any, Any]: """Exclude internal fields from dict.""" + # pylint: disable=invalid-name,no-self-use d.pop("path") d.pop("details") return d diff --git a/requirements.txt b/requirements.txt index ae8ab700..b0902e25 100644 --- a/requirements.txt +++ b/requirements.txt @@ -12,4 +12,4 @@ pillow>=8.0,<=9.0.1 unidecode>=1.0,<=1.3.4 ujson>=4.0,<=5.1.0 mashumaro>=3.0,<=3.1 -tinytag>=1.6,<=1.8.1 \ No newline at end of file +tinytag>=1.6,<=1.8.1 diff --git a/setup.cfg b/setup.cfg index ec9f535a..7afd0551 100644 --- a/setup.cfg +++ b/setup.cfg @@ -105,4 +105,4 @@ max-nested-blocks=15 ignored-classes=_CountingAttr [pylint.format] -expected-line-ending-format=LF \ No newline at end of file +expected-line-ending-format=LF -- 2.34.1