From d6b41de54b0e7889ad2f90b6cd0047ac717dca2c Mon Sep 17 00:00:00 2001 From: Seaswimmer Date: Sat, 22 Jun 2024 02:05:59 -0400 Subject: [PATCH] final pylint fixes --- .forgejo/workflows/config/.pylintrc | 1 + stellarismodparser/stellarismodparser.py | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.forgejo/workflows/config/.pylintrc b/.forgejo/workflows/config/.pylintrc index 6b82ceb..43ae10c 100644 --- a/.forgejo/workflows/config/.pylintrc +++ b/.forgejo/workflows/config/.pylintrc @@ -4,3 +4,4 @@ missing-function-docstring, line-too-long, too-many-arguments, + too-many-instance-attributes diff --git a/stellarismodparser/stellarismodparser.py b/stellarismodparser/stellarismodparser.py index 3f3fdf8..6644b5e 100644 --- a/stellarismodparser/stellarismodparser.py +++ b/stellarismodparser/stellarismodparser.py @@ -37,7 +37,7 @@ class Mod: self.picture = picture self.tags = tags if len(tags) > 10: - logger.warning(f"Mod {name} has more than 10 tags. This will prevent the mod from being uploaded to the Steam Workshop and Paradox Mods.") + logger.warning("Mod %s has more than 10 tags. This will prevent the mod from being uploaded to the Steam Workshop and Paradox Mods.", self.name) self.version = version self.supported_version = StellarisVersion.parse(supported_version) if supported_version else None self.remote_file_id = remote_file_id @@ -127,11 +127,11 @@ class StellarisVersion(Version): def __str__(self) -> str: version = self.codename - version += " %d.%d.%d" % (self.major, self.minor, self.patch) + version += f" {self.major}.{self.minor}.{self.patch}" if self.prerelease: - version += "-%s" % self.prerelease + version += f"-{self.prerelease}" if self.build: - version += "+%s" % self.build + version += f"+{self.build}" return version def to_tuple(self) -> tuple: