Skip to content

Commit 2f4fd72

Browse files
more formatting fixes
1 parent 9bfec26 commit 2f4fd72

5 files changed

Lines changed: 1 addition & 26 deletions

File tree

macro_agents/src/macro_agents/defs/agents/dspy_evaluation.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import dspy
22
from typing import Optional, Dict, Any, List
33
import json
4-
import re
54
from datetime import datetime, timedelta
65
import dagster as dg
76
from pydantic import Field

macro_agents/src/macro_agents/defs/agents/model_improvement_pipeline.py

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -108,23 +108,6 @@ def create_training_dataset(
108108
params=[start_date.strftime("%Y-%m-%d"), end_date.strftime("%Y-%m-%d")],
109109
)
110110

111-
# Get market trend analysis
112-
trend_query = """
113-
SELECT
114-
analysis_content,
115-
analysis_timestamp
116-
FROM enhanced_economic_cycle_analysis
117-
WHERE analysis_type = 'enhanced_market_trends'
118-
AND analysis_timestamp BETWEEN ? AND ?
119-
ORDER BY analysis_timestamp
120-
"""
121-
122-
trend_df = md_resource.execute_query(
123-
trend_query,
124-
read_only=True,
125-
params=[start_date.strftime("%Y-%m-%d"), end_date.strftime("%Y-%m-%d")],
126-
)
127-
128111
# Get backtest results for actual returns
129112
backtest_query = """
130113
SELECT

macro_agents/src/macro_agents/defs/resources/motherduck.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
from pydantic import Field
66
import os
77
import io
8-
import re
98

109

1110
class MotherDuckResource(dg.ConfigurableResource):
@@ -61,7 +60,7 @@ def get_connection(self) -> duckdb.DuckDBPyConnection:
6160
conn = duckdb.connect(self.db_connection)
6261
conn.commit()
6362
return conn
64-
except:
63+
except Exception:
6564
raise e
6665
raise
6766

macro_agents/tests/test_integration.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,6 @@ def test_analyzer_integration(self, mock_configure, mock_lm):
8787
md_token="test_token", environment="dev", local_path=tmp_file.name
8888
)
8989

90-
analyzer = EconomicAnalyzer(
91-
model_name="gpt-4-turbo-preview", openai_api_key="test_key"
92-
)
93-
9490
# Create test data
9591
test_df = pl.DataFrame(
9692
{

macro_agents/tests/test_schedules.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,6 @@ def test_sensor_monday_trigger(self, mock_datetime):
121121
)
122122

123123
sensor = create_data_freshness_sensor()
124-
context = Mock()
125124

126125
# This would need to be tested with actual sensor execution
127126
# For now, just verify the sensor is created
@@ -138,7 +137,6 @@ def test_sensor_monthly_trigger(self, mock_datetime):
138137
)
139138

140139
sensor = create_data_freshness_sensor()
141-
context = Mock()
142140

143141
# This would need to be tested with actual sensor execution
144142
# For now, just verify the sensor is created

0 commit comments

Comments
 (0)