From fb81e2bd1f2b17aa8fddcf86ae5dc0efd13b91a7 Mon Sep 17 00:00:00 2001 From: Toast Date: Wed, 14 May 2025 16:25:30 +0200 Subject: [PATCH] Make ruff happier --- src/{Mod.py => mod.py} | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) rename src/{Mod.py => mod.py} (87%) diff --git a/src/Mod.py b/src/mod.py similarity index 87% rename from src/Mod.py rename to src/mod.py index 4b990dc..46bcf76 100644 --- a/src/Mod.py +++ b/src/mod.py @@ -33,8 +33,8 @@ class Mod: def __init__(self, path: str) -> None: self.__path = path - with open(path + "config.toml") as configFile: - self.__config = tomlkit.load(configFile) + with open(path + "config.toml") as config_file: + self.__config = tomlkit.load(config_file) if "enabled" not in self.__config: raise InvalidModError("config.toml does not contain the enabled key") @@ -47,9 +47,9 @@ class Mod: # Nothing to do return - with open(self.__path + "config.toml", "w") as configFile: + with open(self.__path + "config.toml", "w") as config_file: self.__config["enabled"] = value - tomlkit.dump(self.__config, configFile) + tomlkit.dump(self.__config, config_file) def __str__(self) -> str: return f"Mod({self.__path})"