Make pylint happy
This commit is contained in:
@@ -24,7 +24,7 @@ from time import time
|
|||||||
from gi.repository import Adw, Gio, GLib, Gtk
|
from gi.repository import Adw, Gio, GLib, Gtk
|
||||||
from PIL import Image
|
from PIL import Image
|
||||||
|
|
||||||
from src import shared
|
from src import shared # pylint: disable=no-name-in-module
|
||||||
from src.game import Game
|
from src.game import Game
|
||||||
from src.game_cover import GameCover
|
from src.game_cover import GameCover
|
||||||
from src.store.managers.sgdb_manager import SGDBManager
|
from src.store.managers.sgdb_manager import SGDBManager
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ from time import time
|
|||||||
|
|
||||||
from gi.repository import Adw, Gtk
|
from gi.repository import Adw, Gtk
|
||||||
|
|
||||||
from src import shared
|
from src import shared # pylint: disable=no-name-in-module
|
||||||
from src.game_cover import GameCover
|
from src.game_cover import GameCover
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
from gi.repository import GdkPixbuf, Gio, GLib
|
from gi.repository import GdkPixbuf, Gio, GLib
|
||||||
from PIL import Image, ImageFilter, ImageStat
|
from PIL import Image, ImageFilter, ImageStat
|
||||||
|
|
||||||
from src import shared
|
from src import shared # pylint: disable=no-name-in-module
|
||||||
|
|
||||||
|
|
||||||
class GameCover:
|
class GameCover:
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import logging
|
|||||||
|
|
||||||
from gi.repository import Adw, Gtk
|
from gi.repository import Adw, Gtk
|
||||||
|
|
||||||
from src import shared
|
from src import shared # pylint: disable=no-name-in-module
|
||||||
from src.game import Game
|
from src.game import Game
|
||||||
from src.utils.task import Task
|
from src.utils.task import Task
|
||||||
from src.store.pipeline import Pipeline
|
from src.store.pipeline import Pipeline
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ from time import time
|
|||||||
|
|
||||||
import yaml
|
import yaml
|
||||||
|
|
||||||
from src import shared
|
from src import shared # pylint: disable=no-name-in-module
|
||||||
from src.game import Game
|
from src.game import Game
|
||||||
from src.importer.sources.source import (
|
from src.importer.sources.source import (
|
||||||
SourceIterationResult,
|
SourceIterationResult,
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ from pathlib import Path
|
|||||||
from time import time
|
from time import time
|
||||||
from typing import Optional, TypedDict
|
from typing import Optional, TypedDict
|
||||||
|
|
||||||
from src import shared
|
from src import shared # pylint: disable=no-name-in-module
|
||||||
from src.game import Game
|
from src.game import Game
|
||||||
from src.importer.sources.source import (
|
from src.importer.sources.source import (
|
||||||
URLExecutableSource,
|
URLExecutableSource,
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ from pathlib import Path
|
|||||||
from sqlite3 import connect
|
from sqlite3 import connect
|
||||||
from time import time
|
from time import time
|
||||||
|
|
||||||
from src import shared
|
from src import shared # pylint: disable=no-name-in-module
|
||||||
from src.game import Game
|
from src.game import Game
|
||||||
from src.importer.sources.source import (
|
from src.importer.sources.source import (
|
||||||
SourceIterationResult,
|
SourceIterationResult,
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ from pathlib import Path
|
|||||||
from time import time
|
from time import time
|
||||||
from typing import Generator
|
from typing import Generator
|
||||||
|
|
||||||
from src import shared
|
from src import shared # pylint: disable=no-name-in-module
|
||||||
from src.game import Game
|
from src.game import Game
|
||||||
from src.importer.sources.source import Source, SourceIterationResult, SourceIterator
|
from src.importer.sources.source import Source, SourceIterationResult, SourceIterator
|
||||||
from src.utils.decorators import (
|
from src.utils.decorators import (
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
from sqlite3 import connect
|
from sqlite3 import connect
|
||||||
from time import time
|
from time import time
|
||||||
|
|
||||||
from src import shared
|
from src import shared # pylint: disable=no-name-in-module
|
||||||
from src.game import Game
|
from src.game import Game
|
||||||
from src.importer.sources.source import (
|
from src.importer.sources.source import (
|
||||||
SourceIterationResult,
|
SourceIterationResult,
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ from collections.abc import Iterable, Iterator
|
|||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from typing import Generator, Any
|
from typing import Generator, Any
|
||||||
|
|
||||||
from src import shared
|
from src import shared # pylint: disable=no-name-in-module
|
||||||
from src.game import Game
|
from src.game import Game
|
||||||
|
|
||||||
# Type of the data returned by iterating on a Source
|
# Type of the data returned by iterating on a Source
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ from pathlib import Path
|
|||||||
from time import time
|
from time import time
|
||||||
from typing import Iterable
|
from typing import Iterable
|
||||||
|
|
||||||
from src import shared
|
from src import shared # pylint: disable=no-name-in-module
|
||||||
from src.game import Game
|
from src.game import Game
|
||||||
from src.importer.sources.source import (
|
from src.importer.sources.source import (
|
||||||
SourceIterationResult,
|
SourceIterationResult,
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ from time import time
|
|||||||
|
|
||||||
import yaml
|
import yaml
|
||||||
|
|
||||||
from src import shared
|
from src import shared # pylint: disable=no-name-in-module
|
||||||
from src.utils.check_install import check_install
|
from src.utils.check_install import check_install
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ from hashlib import sha256
|
|||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from time import time
|
from time import time
|
||||||
|
|
||||||
from src import shared
|
from src import shared # pylint: disable=no-name-in-module
|
||||||
from src.utils.check_install import check_install
|
from src.utils.check_install import check_install
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ from time import time
|
|||||||
import requests
|
import requests
|
||||||
from gi.repository import GdkPixbuf, Gio
|
from gi.repository import GdkPixbuf, Gio
|
||||||
|
|
||||||
from src import shared
|
from src import shared # pylint: disable=no-name-in-module
|
||||||
from src.utils.check_install import check_install
|
from src.utils.check_install import check_install
|
||||||
from src.utils.save_cover import resize_cover
|
from src.utils.save_cover import resize_cover
|
||||||
|
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ from shutil import copyfile
|
|||||||
from sqlite3 import connect
|
from sqlite3 import connect
|
||||||
from time import time
|
from time import time
|
||||||
|
|
||||||
from src import shared
|
from src import shared # pylint: disable=no-name-in-module
|
||||||
from src.utils.check_install import check_install
|
from src.utils.check_install import check_install
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ from time import time
|
|||||||
import requests
|
import requests
|
||||||
from gi.repository import Gio
|
from gi.repository import Gio
|
||||||
|
|
||||||
from src import shared
|
from src import shared # pylint: disable=no-name-in-module
|
||||||
from src.utils.check_install import check_install
|
from src.utils.check_install import check_install
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ gi.require_version("Adw", "1")
|
|||||||
# pylint: disable=wrong-import-position
|
# pylint: disable=wrong-import-position
|
||||||
from gi.repository import Adw, Gio, GLib, Gtk
|
from gi.repository import Adw, Gio, GLib, Gtk
|
||||||
|
|
||||||
from src import shared
|
from src import shared # pylint: disable=no-name-in-module
|
||||||
from src.details_window import DetailsWindow
|
from src.details_window import DetailsWindow
|
||||||
from src.game import Game
|
from src.game import Game
|
||||||
from src.importer.importer import Importer
|
from src.importer.importer import Importer
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ from pathlib import Path
|
|||||||
from gi.repository import Adw, Gio, GLib, Gtk
|
from gi.repository import Adw, Gio, GLib, Gtk
|
||||||
|
|
||||||
# pylint: disable=unused-import
|
# pylint: disable=unused-import
|
||||||
from src import shared
|
from src import shared # pylint: disable=no-name-in-module
|
||||||
|
|
||||||
# TODO use the new sources
|
# TODO use the new sources
|
||||||
from src.importers.bottles_importer import bottles_installed
|
from src.importers.bottles_importer import bottles_installed
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
from src import shared
|
from src import shared # pylint: disable=no-name-in-module
|
||||||
from src.game import Game
|
from src.game import Game
|
||||||
from src.store.managers.sgdb_manager import SGDBManager
|
from src.store.managers.sgdb_manager import SGDBManager
|
||||||
from src.store.managers.steam_api_manager import SteamAPIManager
|
from src.store.managers.steam_api_manager import SteamAPIManager
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import requests
|
|||||||
from gi.repository import GdkPixbuf, Gio
|
from gi.repository import GdkPixbuf, Gio
|
||||||
from requests.exceptions import HTTPError, SSLError
|
from requests.exceptions import HTTPError, SSLError
|
||||||
|
|
||||||
from src import shared
|
from src import shared # pylint: disable=no-name-in-module
|
||||||
from src.game import Game
|
from src.game import Game
|
||||||
from src.store.managers.local_cover_manager import LocalCoverManager
|
from src.store.managers.local_cover_manager import LocalCoverManager
|
||||||
from src.store.managers.manager import Manager
|
from src.store.managers.manager import Manager
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
from src import shared
|
from src import shared # pylint: disable=no-name-in-module
|
||||||
from src.game import Game
|
from src.game import Game
|
||||||
from src.store.managers.manager import Manager
|
from src.store.managers.manager import Manager
|
||||||
from src.store.pipeline import Pipeline
|
from src.store.pipeline import Pipeline
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ from pathlib import Path
|
|||||||
from os import PathLike, environ
|
from os import PathLike, environ
|
||||||
from functools import wraps
|
from functools import wraps
|
||||||
|
|
||||||
from src import shared
|
from src import shared # pylint: disable=no-name-in-module
|
||||||
|
|
||||||
|
|
||||||
def replaced_by_path(override: PathLike): # Decorator builder
|
def replaced_by_path(override: PathLike): # Decorator builder
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ from shutil import copyfile
|
|||||||
from gi.repository import Gio
|
from gi.repository import Gio
|
||||||
from PIL import Image, ImageSequence
|
from PIL import Image, ImageSequence
|
||||||
|
|
||||||
from src import shared
|
from src import shared # pylint: disable=no-name-in-module
|
||||||
|
|
||||||
|
|
||||||
def resize_cover(cover_path=None, pixbuf=None):
|
def resize_cover(cover_path=None, pixbuf=None):
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ from typing import TypedDict
|
|||||||
import requests
|
import requests
|
||||||
from requests.exceptions import HTTPError
|
from requests.exceptions import HTTPError
|
||||||
|
|
||||||
from src import shared
|
from src import shared # pylint: disable=no-name-in-module
|
||||||
from src.utils.rate_limiter import PickHistory, RateLimiter
|
from src.utils.rate_limiter import PickHistory, RateLimiter
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import requests
|
|||||||
from gi.repository import Gio
|
from gi.repository import Gio
|
||||||
from requests.exceptions import HTTPError
|
from requests.exceptions import HTTPError
|
||||||
|
|
||||||
from src import shared
|
from src import shared # pylint: disable=no-name-in-module
|
||||||
from src.utils.save_cover import resize_cover, save_cover
|
from src.utils.save_cover import resize_cover, save_cover
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ from datetime import datetime
|
|||||||
|
|
||||||
from gi.repository import Adw, GLib, Gtk
|
from gi.repository import Adw, GLib, Gtk
|
||||||
|
|
||||||
from src import shared
|
from src import shared # pylint: disable=no-name-in-module
|
||||||
|
|
||||||
|
|
||||||
@Gtk.Template(resource_path=shared.PREFIX + "/gtk/window.ui")
|
@Gtk.Template(resource_path=shared.PREFIX + "/gtk/window.ui")
|
||||||
|
|||||||
Reference in New Issue
Block a user