Skip to content

Commit

Permalink
Fix for linting.
Browse files Browse the repository at this point in the history
  • Loading branch information
Holt59 committed Aug 11, 2024
1 parent 640b79b commit 066a096
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 19 deletions.
2 changes: 1 addition & 1 deletion basic_games/basic_game.py
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ def isActive(self) -> bool:
# Note: self is self._organizer.managedGame() does not work:
return self.name() == self._organizer.managedGame().name()

def settings(self) -> list[mobase.PluginSetting]:
def settings(self) -> list[mobase.Setting]:
return []

# IPluginGame interface:
Expand Down
18 changes: 9 additions & 9 deletions basic_games/games/game_cyberpunk2077.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,9 +393,9 @@ def listSaves(self, folder: QDir) -> list[mobase.ISaveGame]:
for path in Path(folder.absolutePath()).glob(f"**/*.{ext}")
]

def settings(self) -> list[mobase.PluginSetting]:
def settings(self) -> list[mobase.Setting]:
return [
mobase.PluginSetting(
mobase.Setting(
"skipStartScreen",
self.tr("Skip start screen"),
self.tr(
Expand All @@ -404,7 +404,7 @@ def settings(self) -> list[mobase.PluginSetting]:
),
False,
),
mobase.PluginSetting(
mobase.Setting(
"enforce_archive_load_order",
self.tr("Enforce archive load order"),
self.tr(
Expand All @@ -413,7 +413,7 @@ def settings(self) -> list[mobase.PluginSetting]:
),
False,
),
mobase.PluginSetting(
mobase.Setting(
"reverse_archive_load_order",
self.tr("Reverse archive load order"),
self.tr(
Expand All @@ -423,13 +423,13 @@ def settings(self) -> list[mobase.PluginSetting]:
),
False,
),
mobase.PluginSetting(
mobase.Setting(
"enforce_redmod_load_order",
self.tr("Enforce RedMod load order"),
self.tr("Enforce the current load order on redmod deployment"),
True,
),
mobase.PluginSetting(
mobase.Setting(
"reverse_redmod_load_order",
self.tr("Reverse RedMod load order"),
self.tr(
Expand All @@ -438,13 +438,13 @@ def settings(self) -> list[mobase.PluginSetting]:
),
False,
),
mobase.PluginSetting(
mobase.Setting(
"auto_deploy_redmod",
self.tr("Auto deploy RedMod"),
self.tr("Deploy redmod before game launch if necessary"),
True,
),
mobase.PluginSetting(
mobase.Setting(
"clear_cache_after_game_update",
self.tr("Clear cache after game update"),
self.tr(
Expand All @@ -453,7 +453,7 @@ def settings(self) -> list[mobase.PluginSetting]:
),
True,
),
mobase.PluginSetting(
mobase.Setting(
"configure_RootBuilder",
self.tr("Configure RootBuilder"),
self.tr(
Expand Down
4 changes: 2 additions & 2 deletions basic_games/games/game_subnautica.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,9 @@ def _settings_change_callback(
if plugin_name == self.name() and setting == "use_qmods":
self._set_mod_data_checker(use_qmod=bool(new))

def settings(self) -> list[mobase.PluginSetting]:
def settings(self) -> list[mobase.Setting]:
return [
mobase.PluginSetting(
mobase.Setting(
"use_qmods",
self.tr("Use QMods"),
self.tr(
Expand Down
6 changes: 3 additions & 3 deletions basic_games/games/game_valheim.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,17 +380,17 @@ def listSaves(self, folder: QDir) -> list[mobase.ISaveGame]:
save_games.extend(ValheimWorldSaveGame(f) for f in path.glob("worlds/*.fwl"))
return save_games

def settings(self) -> list[mobase.PluginSetting]:
def settings(self) -> list[mobase.Setting]:
settings = super().settings()
settings.extend(
[
mobase.PluginSetting(
mobase.Setting(
"sync_overwrite",
self.tr("Synchronize overwrite"),
self.tr("Synchronize overwrite with mods"),
True,
),
mobase.PluginSetting(
mobase.Setting(
"search_overwrite_file_content",
self.tr("Search overwrite file content"),
self.tr("Search content of files in overwrite for matching mod"),
Expand Down
8 changes: 4 additions & 4 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ psutil = "^5.8.0"
vdf = "3.4"
lzokay = "1.1.5"
pyqt6 = "6.7.1"
mobase-stubs = {version = "^2.6.0.dev1", allow-prereleases = true}

[tool.poetry.group.dev.dependencies]
mobase-stubs = "^2.5.2"
Expand Down

0 comments on commit 066a096

Please sign in to comment.