Skip to content

Commit 51f8943

Browse files
committed
[ruff] add more rules and fixes
1 parent f9c5c65 commit 51f8943

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,10 @@ select = [
190190
"G",
191191
# flake8-pie
192192
"PIE",
193+
# flake8-quotes
194+
"Q",
195+
# flake8-return
196+
"RET",
193197

194198
]
195199
ignore = [

tibiapy/enums.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -561,14 +561,13 @@ def base(self):
561561
"""The base vocation of this vocation if promoted. If not promoted, the same value is returned."""
562562
if self == self.ELDER_DRUID:
563563
return self.DRUID
564-
elif self == self.MASTER_SORCERER:
564+
if self == self.MASTER_SORCERER:
565565
return self.SORCERER
566-
elif self == self.ROYAL_PALADIN:
566+
if self == self.ROYAL_PALADIN:
567567
return self.PALADIN
568-
elif self == self.ELITE_KNIGHT:
568+
if self == self.ELITE_KNIGHT:
569569
return self.KNIGHT
570-
else:
571-
return self
570+
return self
572571

573572

574573
class WorldLocation(StringEnum):

0 commit comments

Comments
 (0)