Fix the ruff formatting issues#1788
Conversation
| except Exception as e: | ||
| logger.error(f"Error in /enhance-image: {e}", exc_info=True) | ||
| raise HTTPException(status_code=500, detail=f"Internal Server Error: {e}") | ||
| raise HTTPException(status_code=500, detail=f"Internal Server Error: {e}") from e |
There was a problem hiding this comment.
[ruff-suggester] reported by reviewdog 🐶
| raise HTTPException(status_code=500, detail=f"Internal Server Error: {e}") from e | |
| raise HTTPException( | |
| status_code=500, detail=f"Internal Server Error: {e}" | |
| ) from e |
| except Exception as e: | ||
| logger.error(f"Error in /edit-frame: {e}", exc_info=True) | ||
| raise HTTPException(status_code=500, detail=f"Internal Server Error: {e}") | ||
| raise HTTPException(status_code=500, detail=f"Internal Server Error: {e}") from e |
There was a problem hiding this comment.
[ruff-suggester] reported by reviewdog 🐶
| raise HTTPException(status_code=500, detail=f"Internal Server Error: {e}") from e | |
| raise HTTPException( | |
| status_code=500, detail=f"Internal Server Error: {e}" | |
| ) from e |
| f"Error generating R2V video for index {index}: {e}", exc_info=True | ||
| ) | ||
| raise HTTPException(status_code=500, detail=f"Internal Server Error: {e}") | ||
| raise HTTPException(status_code=500, detail=f"Internal Server Error: {e}") from e |
There was a problem hiding this comment.
[ruff-suggester] reported by reviewdog 🐶
| raise HTTPException(status_code=500, detail=f"Internal Server Error: {e}") from e | |
| raise HTTPException( | |
| status_code=500, detail=f"Internal Server Error: {e}" | |
| ) from e |
| except Exception as e: | ||
| logger.error(f"Error in /generate-prompt: {e}", exc_info=True) | ||
| raise HTTPException(status_code=500, detail=f"Internal Server Error: {e}") | ||
| raise HTTPException(status_code=500, detail=f"Internal Server Error: {e}") from e |
There was a problem hiding this comment.
[ruff-suggester] reported by reviewdog 🐶
| raise HTTPException(status_code=500, detail=f"Internal Server Error: {e}") from e | |
| raise HTTPException( | |
| status_code=500, detail=f"Internal Server Error: {e}" | |
| ) from e |
| except Exception as e: | ||
| logger.error(f"Error in /generate-custom-prompt: {e}", exc_info=True) | ||
| raise HTTPException(status_code=500, detail=f"Internal Server Error: {e}") | ||
| raise HTTPException(status_code=500, detail=f"Internal Server Error: {e}") from e |
There was a problem hiding this comment.
[ruff-suggester] reported by reviewdog 🐶
| raise HTTPException(status_code=500, detail=f"Internal Server Error: {e}") from e | |
| raise HTTPException( | |
| status_code=500, detail=f"Internal Server Error: {e}" | |
| ) from e |
|
|
||
| def generate_footwear_description( | ||
| client, gemini_model: str = "gemini-2.5-flash", all_images_bytes: list[bytes] = None | ||
| client, gemini_model: str = "gemini-2.5-flash", all_images_bytes: list[bytes] | None = None |
There was a problem hiding this comment.
[ruff-suggester] reported by reviewdog 🐶
| client, gemini_model: str = "gemini-2.5-flash", all_images_bytes: list[bytes] | None = None | |
| client, | |
| gemini_model: str = "gemini-2.5-flash", | |
| all_images_bytes: list[bytes] | None = None, |
|
|
||
| def generate_veo_prompt_r2v( | ||
| client, gemini_model: str = "gemini-2.5-flash", all_images_bytes: list[bytes] = None | ||
| client, gemini_model: str = "gemini-2.5-flash", all_images_bytes: list[bytes] | None = None |
There was a problem hiding this comment.
[ruff-suggester] reported by reviewdog 🐶
| client, gemini_model: str = "gemini-2.5-flash", all_images_bytes: list[bytes] | None = None | |
| client, | |
| gemini_model: str = "gemini-2.5-flash", | |
| all_images_bytes: list[bytes] | None = None, |
| filtered = [ | ||
| (idx, position) | ||
| for idx, position in zip(sampled_indices, product_position_frames) | ||
| for idx, position in zip(sampled_indices, product_position_frames, strict=False) |
There was a problem hiding this comment.
[ruff-suggester] reported by reviewdog 🐶
| for idx, position in zip(sampled_indices, product_position_frames, strict=False) | |
| for idx, position in zip( | |
| sampled_indices, product_position_frames, strict=False | |
| ) |
| ) | ||
| except Exception as e: | ||
| raise HTTPException(status_code=500, detail=f"Failed to generate prompt: {e}") | ||
| raise HTTPException(status_code=500, detail=f"Failed to generate prompt: {e}") from e |
There was a problem hiding this comment.
[ruff-suggester] reported by reviewdog 🐶
| raise HTTPException(status_code=500, detail=f"Failed to generate prompt: {e}") from e | |
| raise HTTPException( | |
| status_code=500, detail=f"Failed to generate prompt: {e}" | |
| ) from e |
| with patch( | ||
| "mcp_server.shared.catalog.catalog_mcp.search", return_value=[] | ||
| ) as mock_search: | ||
| ): |
There was a problem hiding this comment.
[ruff-suggester] reported by reviewdog 🐶
| with patch( | |
| "mcp_server.shared.catalog.catalog_mcp.search", return_value=[] | |
| ) as mock_search: | |
| ): | |
| with patch("mcp_server.shared.catalog.catalog_mcp.search", return_value=[]): |
|
There is a problem with the Gemini CLI PR review. Please check the action logs for details. |
No description provided.