Skip to content

Commit

Permalink
fix for syntax error
Browse files Browse the repository at this point in the history
  • Loading branch information
nfearnley committed Jun 7, 2024
1 parent c28aab5 commit 08b454b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ select = [
"RUF", # Ruff-specific rules

]
ignore = ["E501", "COM812", "PIE790", "RET504", "RUF001", "RUF013"]
ignore = ["E501", "COM812", "PIE790", "RET504", "RUF001", "RUF013", "ANN101", "ANN102"]

[tool.ruff.lint.pep8-naming]
ignore-names = ["fromJSON", "toJSON"]
4 changes: 2 additions & 2 deletions sizebot/cogs/loop.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from sizebot.lib.units import RV, SV, TV
from sizebot.lib import userdb
from sizebot.lib.constants import emojis
from sizebot.lib.types import BotContext, GuildContext
from sizebot.lib.types import GuildContext
from sizebot.lib.utils import pretty_time_delta
from sizebot.lib.userdb import MoveTypeStr
import sizebot.lib.language as lang
Expand All @@ -37,7 +37,7 @@ def calc_move_dist(userdata: userdb.User) -> tuple[TV, SV]:
raise ValueError(f"{movetype}perhour is not a valid stat.")

persecond = RV(speed / 60 / 60)
distance = elapsed_seconds * persecond)
distance = elapsed_seconds * persecond

return elapsed_seconds, distance

Expand Down

0 comments on commit 08b454b

Please sign in to comment.