Skip to content

Commit f63cf4c

Browse files
thompsonsonclaude
andcommitted
fix: move imports to top-level to resolve linting errors
- Move belief_module import to top of test_architectural_constraints.py - Move BeliefUpdate import to top of test_game_coordination.py - Resolve PLC0415 linting errors from CI pipeline 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 230696b commit f63cf4c

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

tests/test_architectural_constraints.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
import pytest
1313

14+
import domains.belief.belief_domain as belief_module
1415
from domains.belief.belief_domain import BayesianBeliefState, BeliefUpdate
1516
from domains.coordination.game_coordination import BayesianGame
1617
from domains.environment.environment_domain import EnvironmentEvidence
@@ -109,8 +110,6 @@ def test_information_filtering_in_coordination(self):
109110

110111
def test_domain_import_isolation(self):
111112
"""Test that belief domain doesn't import environment domain."""
112-
import domains.belief.belief_domain as belief_module
113-
114113
# Get all imports in the belief domain module
115114
belief_source = inspect.getsource(belief_module)
116115

tests/test_game_coordination.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import pytest
22

3+
from domains.belief.belief_domain import BeliefUpdate
34
from domains.coordination.game_coordination import BayesianGame, GamePhase, GameState
45
from domains.environment.environment_domain import EnvironmentEvidence
56

@@ -309,8 +310,6 @@ def test_game_with_evidence_updates(self):
309310
game.start_new_game(target_value=3)
310311

311312
# Apply evidence that changes beliefs
312-
from domains.belief.belief_domain import BeliefUpdate
313-
314313
update = BeliefUpdate(comparison_results=["higher"])
315314
game.belief_state.update_beliefs(update)
316315

0 commit comments

Comments
 (0)