Skip to content

Commit f9c5c65

Browse files
committed
[ruff] add more rules and fixes
1 parent 8512be9 commit f9c5c65

File tree

4 files changed

+11
-3
lines changed

4 files changed

+11
-3
lines changed

pyproject.toml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,16 @@ select = [
180180
"B",
181181
# flake8-commas
182182
"COM",
183+
# flake8-comprehensions
184+
"C4",
185+
# flake8-future-annotations
186+
"FA",
187+
# flake8-implicit-str-concat
188+
"ISC",
189+
# flake8-logging-format
190+
"G",
191+
# flake8-pie
192+
"PIE",
183193

184194
]
185195
ignore = [

tibiapy/errors.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ class TibiapyException(Exception):
1313
All exceptions thrown by the module are inherited from this.
1414
"""
1515

16-
pass
1716

1817

1918
class InvalidContent(TibiapyException):

tibiapy/models/world.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ def creation_month(self) -> int:
8585
class WorldEntry(BaseWorld):
8686
"""Represents a game server listed in the World Overview section."""
8787

88-
pass
8988

9089

9190
class WorldOverview(BaseModel):

tibiapy/parsers/character.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ def _parse_character_information(cls, builder: CharacterBuilder, rows: List[bs4.
173173
action = field_actions[field]
174174
action(raw_value, value)
175175
else:
176-
logger.debug(f"Unhandled character information field found: {field}")
176+
logger.debug("Unhandled character information field found: %s", field)
177177

178178
@classmethod
179179
def _parse_name_field(cls, builder: CharacterBuilder, value: str):

0 commit comments

Comments
 (0)