Skip to content

feat(cli): add cli and remove warning#713

Merged
leoguillaume merged 14 commits into
mainfrom
cli
Mar 3, 2026
Merged

feat(cli): add cli and remove warning#713
leoguillaume merged 14 commits into
mainfrom
cli

Conversation

@leoguillaume

Copy link
Copy Markdown
Member

No description provided.

@leoguillaume leoguillaume force-pushed the cli branch 7 times, most recently from 62c647b to c3ed5e3 Compare February 26, 2026 14:22
@leoguillaume leoguillaume marked this pull request as ready for review February 26, 2026 17:07
class Providers(BaseModel):
object: Literal["list"] = "list"
data: list[Provider]
from api.infrastructure.fastapi.schemas.providers import Provider, Providers

Check notice

Code scanning / CodeQL

Unused import Note

Import of 'Provider' is not used.
Import of 'Providers' is not used.

Copilot Autofix

AI 5 months ago

To fix the problem, remove the unused import of Provider and Providers from api.infrastructure.fastapi.schemas.providers at the bottom of api/schemas/admin/providers.py. This eliminates the unnecessary dependency and resolves both CodeQL alerts.

Concretely, in api/schemas/admin/providers.py, delete the line:

from api.infrastructure.fastapi.schemas.providers import Provider, Providers

No other lines, imports, or definitions in the shown snippet need to change, and no new code or imports are required. This change does not alter any existing functionality, because the imported names are not used anywhere in this file.

Suggested changeset 1
api/schemas/admin/providers.py

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/api/schemas/admin/providers.py b/api/schemas/admin/providers.py
--- a/api/schemas/admin/providers.py
+++ b/api/schemas/admin/providers.py
@@ -75,6 +75,3 @@
             raise ValueError("QoS value is required if QoS metric is provided.")
 
         return self
-
-
-from api.infrastructure.fastapi.schemas.providers import Provider, Providers
EOF
@@ -75,6 +75,3 @@
raise ValueError("QoS value is required if QoS metric is provided.")

return self


from api.infrastructure.fastapi.schemas.providers import Provider, Providers
Copilot is powered by AI and may make mistakes. Always verify output.
@leoguillaume leoguillaume merged commit a362dce into main Mar 3, 2026
@leoguillaume leoguillaume deleted the cli branch March 3, 2026 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants