Skip to content

Commit 9bfec26

Browse files
linting errors
1 parent bc890c5 commit 9bfec26

5 files changed

Lines changed: 15 additions & 13 deletions

File tree

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# Import all agent modules
22
# Import order matters - base modules first, then modules that depend on them
3-
from .analysis_agent import *
4-
from .dspy_evaluation import *
5-
from .economic_cycle_analyzer import *
6-
from .enhanced_economic_cycle_analyzer import *
7-
from .asset_allocation_analyzer import *
8-
from .backtesting import *
9-
from .economic_dashboard import *
10-
from .backtesting_visualization import *
11-
from .model_improvement_pipeline import *
3+
from .analysis_agent import * # noqa: F403
4+
from .dspy_evaluation import * # noqa: F403
5+
from .economic_cycle_analyzer import * # noqa: F403
6+
from .enhanced_economic_cycle_analyzer import * # noqa: F403
7+
from .asset_allocation_analyzer import * # noqa: F403
8+
from .backtesting import * # noqa: F403
9+
from .economic_dashboard import * # noqa: F403
10+
from .backtesting_visualization import * # noqa: F403
11+
from .model_improvement_pipeline import * # noqa: F403

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import dspy
22
from typing import Optional, Dict, Any, List
33
import json
4+
import re
45
from datetime import datetime, timedelta
56
import dagster as dg
67
from pydantic import Field
@@ -371,7 +372,7 @@ def optimize_prompts(
371372
)
372373

373374
# Optimize the module
374-
optimized_module = optimizer.compile(
375+
optimizer.compile(
375376
module, trainset=training_examples, valset=validation_examples
376377
)
377378

macro_agents/src/macro_agents/defs/agents/enhanced_economic_cycle_analyzer.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import dspy
22
from typing import Optional, Dict, Any, List
33
import json
4+
import re
45
from datetime import datetime
56
import dagster as dg
67
from pydantic import Field

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

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

910

1011
class MotherDuckResource(dg.ConfigurableResource):
@@ -270,7 +271,7 @@ def write_results_to_table(
270271
try:
271272
conn.execute(f"SELECT 1 FROM {output_table} LIMIT 1")
272273
table_exists = True
273-
except:
274+
except Exception:
274275
table_exists = False
275276

276277
if table_exists and if_exists == "fail":
@@ -320,7 +321,7 @@ def table_exists(self, table_name: str) -> bool:
320321
conn = self.get_connection()
321322
conn.execute(f"SELECT 1 FROM {table_name} LIMIT 1")
322323
return True
323-
except:
324+
except Exception:
324325
return False
325326
finally:
326327
if conn:

macro_agents/tests/test_schedules.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,6 @@ def test_asset_dependencies_align_with_schedules(self):
315315
"economic_cycle_analysis" in defs.assets
316316
and "asset_allocation_recommendations" in defs.assets
317317
):
318-
cycle_asset = defs.assets["economic_cycle_analysis"]
319318
allocation_asset = defs.assets["asset_allocation_recommendations"]
320319

321320
# Allocation should depend on cycle analysis

0 commit comments

Comments
 (0)