diff --git a/pyproject.toml b/pyproject.toml index e4fd99b..6cb2401 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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"] diff --git a/web/api/convert.py b/web/api/convert.py index aca0053..5c02a8a 100644 --- a/web/api/convert.py +++ b/web/api/convert.py @@ -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 @@ -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 \ No newline at end of file + return