final pylint fixes
All checks were successful
Actions / Lint Code (Ruff & Pylint) (push) Successful in 15s
Actions / Build (push) Successful in 26s

This commit is contained in:
Seaswimmer 2024-06-22 02:05:59 -04:00
parent b4b5b672c6
commit d6b41de54b
Signed by: cswimr
GPG key ID: 3813315477F26F82
2 changed files with 5 additions and 4 deletions

View file

@ -4,3 +4,4 @@
missing-function-docstring, missing-function-docstring,
line-too-long, line-too-long,
too-many-arguments, too-many-arguments,
too-many-instance-attributes

View file

@ -37,7 +37,7 @@ class Mod:
self.picture = picture self.picture = picture
self.tags = tags self.tags = tags
if len(tags) > 10: 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.version = version
self.supported_version = StellarisVersion.parse(supported_version) if supported_version else None self.supported_version = StellarisVersion.parse(supported_version) if supported_version else None
self.remote_file_id = remote_file_id self.remote_file_id = remote_file_id
@ -127,11 +127,11 @@ class StellarisVersion(Version):
def __str__(self) -> str: def __str__(self) -> str:
version = self.codename version = self.codename
version += " %d.%d.%d" % (self.major, self.minor, self.patch) version += f" {self.major}.{self.minor}.{self.patch}"
if self.prerelease: if self.prerelease:
version += "-%s" % self.prerelease version += f"-{self.prerelease}"
if self.build: if self.build:
version += "+%s" % self.build version += f"+{self.build}"
return version return version
def to_tuple(self) -> tuple: def to_tuple(self) -> tuple: