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

ruff cleanup - unused imports #170

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion playground/models/kosmos2.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from swarms.models.kosmos2 import Kosmos2, Detections
from swarms.models.kosmos2 import Kosmos2
from PIL import Image


Expand Down
1 change: 0 additions & 1 deletion swarms/models/simple_ada.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import os
from openai import OpenAI

client = OpenAI()
Expand Down
1 change: 0 additions & 1 deletion swarms/structs/flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import json
import logging
import random
import re
import time
from typing import Any, Callable, Dict, List, Optional, Tuple

Expand Down
2 changes: 0 additions & 2 deletions swarms/utils/apa.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
from enum import Enum, unique, auto
import abc
import hashlib
import re
from typing import List, Optional
import json
from dataclasses import dataclass, field
Expand Down
1 change: 0 additions & 1 deletion swarms/utils/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

import boto3
import numpy as np
import pandas as pd
import requests


Expand Down
1 change: 0 additions & 1 deletion swarms/utils/pdf_to_text.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import sys
import os

try:
import PyPDF2
Expand Down
1 change: 0 additions & 1 deletion tests/models/bioclip.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# Import necessary modules and define fixtures if needed
import os
import pytest
import torch
from PIL import Image
Expand Down
9 changes: 0 additions & 9 deletions tests/swarms/multi_agent_collab.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,21 +93,12 @@ def test_performance(collaboration):
assert agent.name in performance_data
assert "metrics" in performance_data[agent.name]


def test_set_interaction_rules(collaboration):
rules = {"rule1": "action1", "rule2": "action2"}
collaboration.set_interaction_rules(rules)
assert hasattr(collaboration, "interaction_rules")
assert collaboration.interaction_rules == rules


def test_set_interaction_rules(collaboration):
rules = {"rule1": "action1", "rule2": "action2"}
collaboration.set_interaction_rules(rules)
assert hasattr(collaboration, "interaction_rules")
assert collaboration.interaction_rules == rules


def test_repr(collaboration):
repr_str = repr(collaboration)
assert isinstance(repr_str, str)
Expand Down
Loading