Skip to content

Commit

Permalink
style: format and ignore all in web dir
Browse files Browse the repository at this point in the history
  • Loading branch information
Romelium committed Feb 16, 2025
1 parent 11a727d commit 555fbb5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,7 @@ python = ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
addopts = [
"--import-mode=importlib",
]

[tool.ruff.lint.per-file-ignores]
"tests/**/*" = ["S101", "PLR2004"]
"web/**/*" = ["ALL"]
6 changes: 2 additions & 4 deletions web/api/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,7 @@ def do_POST(self):
f.write(gif_data)

try:
svg_content = gif_to_animated_svg(
temp_gif_path, vtracer_options=vtracer_options, fps=fps
)
svg_content = gif_to_animated_svg(temp_gif_path, vtracer_options=vtracer_options, fps=fps)
except NotAnimatedGifError:
self.send_error(400, "The provided GIF is not animated.")
return
Expand Down Expand Up @@ -126,4 +124,4 @@ def do_POST(self):
except Exception as e:
logging.exception("Unexpected error in handler: %s", e)
self.send_error(500, "An unexpected error occurred.")
return
return

0 comments on commit 555fbb5

Please sign in to comment.