diff --git a/examples/cloud_deployment/gcp/deploy.py b/examples/cloud_deployment/gcp/deploy.py index b136aca5..5b6caaa4 100644 --- a/examples/cloud_deployment/gcp/deploy.py +++ b/examples/cloud_deployment/gcp/deploy.py @@ -1,9 +1,9 @@ import getpass import random -from prediction_market_agent_tooling.markets.markets import MarketType -from prediction_market_agent_tooling.markets.data_models import AgentMarket from prediction_market_agent_tooling.deploy.agent import DeployableAgent +from prediction_market_agent_tooling.markets.data_models import AgentMarket +from prediction_market_agent_tooling.markets.markets import MarketType class DeployableCoinFlipAgent(DeployableAgent): diff --git a/prediction_market_agent_tooling/deploy/agent.py b/prediction_market_agent_tooling/deploy/agent.py index 5881c03c..4f27f2f2 100644 --- a/prediction_market_agent_tooling/deploy/agent.py +++ b/prediction_market_agent_tooling/deploy/agent.py @@ -1,9 +1,15 @@ -import time +import inspect import os import tempfile -import inspect +import time from decimal import Decimal +from prediction_market_agent_tooling.deploy.gcp.deploy import ( + deploy_to_gcp, + run_deployed_gcp_function, + schedule_deployed_gcp_function, +) +from prediction_market_agent_tooling.deploy.gcp.utils import gcp_function_is_active from prediction_market_agent_tooling.markets.data_models import ( AgentMarket, BetAmount, @@ -14,16 +20,6 @@ get_binary_markets, place_bet, ) -from prediction_market_agent_tooling.markets.data_models import ( - BetAmount, - Currency, -) -from prediction_market_agent_tooling.deploy.gcp.deploy import ( - deploy_to_gcp, - run_deployed_gcp_function, - schedule_deployed_gcp_function, -) -from prediction_market_agent_tooling.deploy.gcp.utils import gcp_function_is_active class DeployableAgent: diff --git a/prediction_market_agent_tooling/deploy/gcp/deploy.py b/prediction_market_agent_tooling/deploy/gcp/deploy.py index 619e0572..7b2c6509 100644 --- a/prediction_market_agent_tooling/deploy/gcp/deploy.py +++ b/prediction_market_agent_tooling/deploy/gcp/deploy.py @@ -4,7 +4,6 @@ import tempfile import typing as t - import requests from cron_validator import CronValidator diff --git a/tests/deploy/test_deploy.py b/tests/deploy/test_deploy.py index 1fdddae5..48e02179 100644 --- a/tests/deploy/test_deploy.py +++ b/tests/deploy/test_deploy.py @@ -1,7 +1,7 @@ import random -from prediction_market_agent_tooling.markets.data_models import AgentMarket from prediction_market_agent_tooling.deploy.agent import DeployableAgent +from prediction_market_agent_tooling.markets.data_models import AgentMarket from prediction_market_agent_tooling.markets.markets import MarketType