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

Ruff20241218 fixing all but one ruff lint #693

Open
wants to merge 19 commits into
base: master
Choose a base branch
from

Conversation

evelynmitchell
Copy link
Contributor

@evelynmitchell evelynmitchell commented Dec 19, 2024

fixing ruff lint


📚 Documentation preview 📚: https://swarms--693.org.readthedocs.build/en/693/

@@ -111,8 +111,7 @@
history: List[Dict[str, Any]] = field(default_factory=list)


hints = get_type_hints(func)

hints = get_type_hints(func) # noqa: F821

Check failure

Code scanning / Pyre

Unbound name Error

Unbound name [10]: Name func is used but not defined in the current scope.
@@ -109,9 +109,12 @@
cuda_available = torch.cuda.is_available()
if cuda_available:
gpu_info = torch.cuda.get_device_name(0)
return cuda_available, gpu_info
return cuda_available, gpu_info

Check failure

Code scanning / Pyre

Uninitialized local Error test

Uninitialized local [61]: Local variable gpu\_info is undefined, or not always defined.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants