Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

style: format code with Ruff Formatter #9

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
style: format code with Ruff Formatter
This commit fixes the style issues introduced in f9d6472 according to the output
from Ruff Formatter.

Details: None
  • Loading branch information
deepsource-autofix[bot] authored Jun 8, 2024
commit b4f1cb6f0ba9a5ff0be72469a0b678d8aef2c8e8
2 changes: 1 addition & 1 deletion bokusu/models/rymsf.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ def to_malxml(self) -> Anime | Manga:
# 3 max > 0, 3, 6, 10
score_mx = self.score.maximum if self.score.maximum else 0
if score_mx != 3:
score = Frac(f'{score}') / Frac(f'{score_mx}') * 10
score = Frac(f"{score}") / Frac(f"{score_mx}") * 10
score = round(float(score))
else:
scores = (0, 3, 6, 10)
Expand Down
Loading