final pylint fixes
This commit is contained in:
parent
b4b5b672c6
commit
d6b41de54b
2 changed files with 5 additions and 4 deletions
|
@ -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
|
||||||
|
|
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue