From 614c5ec02b2c66c88302165acb2726b9d5ea3fcd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Odd=20Str=C3=A5b=C3=B8?= Date: Tue, 16 Sep 2025 05:26:28 +0200 Subject: [PATCH] Fix flake8 complaints --- .gitignore | 1 + jellyfin_kodi/entrypoint/service.py | 1 + jellyfin_kodi/helper/api.py | 3 ++- tox.ini | 2 +- 4 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 7dfead0d..bc081898 100644 --- a/.gitignore +++ b/.gitignore @@ -70,6 +70,7 @@ Thumbs.db !.vscode/extensions.json !.vscode/settings.json pyinstrument/ +.venv/ # Now managed by templates addon.xml diff --git a/jellyfin_kodi/entrypoint/service.py b/jellyfin_kodi/entrypoint/service.py index e267571d..8702be88 100644 --- a/jellyfin_kodi/entrypoint/service.py +++ b/jellyfin_kodi/entrypoint/service.py @@ -10,6 +10,7 @@ from importlib import reload # Workaround for threads using datetime: _striptime is locked import _strptime # noqa:F401 + import xbmc import xbmcgui diff --git a/jellyfin_kodi/helper/api.py b/jellyfin_kodi/helper/api.py index 5ec3736c..da4a0971 100644 --- a/jellyfin_kodi/helper/api.py +++ b/jellyfin_kodi/helper/api.py @@ -1,11 +1,12 @@ # -*- coding: utf-8 -*- from __future__ import division, absolute_import, print_function, unicode_literals +import json + ################################################################################################## from . import settings, LazyLogger from .utils import translate_path -import json ################################################################################################## diff --git a/tox.ini b/tox.ini index e353deb0..1c30f574 100644 --- a/tox.ini +++ b/tox.ini @@ -1,7 +1,7 @@ [flake8] max-line-length = 9999 import-order-style = pep8 -exclude = .git,.vscode +exclude = .git,.vscode,.venv extend-ignore = I202 E203