Skip to content

Commit 1c612c8

Browse files
Lumi-nodeclaude
andcommitted
Fix all ruff lint errors for CI
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 08c8f20 commit 1c612c8

11 files changed

Lines changed: 30 additions & 26 deletions

File tree

orc/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@
1717
"""
1818

1919
from orc.arena import Arena, ArenaConfig, TrialResult
20-
from orc.judges import LLMJudge, MetricsJudge, ConsensusJudge
20+
from orc.judges import ConsensusJudge, LLMJudge, MetricsJudge
2121
from orc.strategies import (
22-
ChallengeStrategy,
2322
AlwaysChallenge,
24-
ReputationBased,
23+
ChallengeStrategy,
2524
CooldownStrategy,
25+
ReputationBased,
2626
SpecialistStrategy,
2727
)
28-
from orc.themed import Warrior, Elder, Warchief, TheArena
28+
from orc.themed import Elder, TheArena, Warchief, Warrior
2929

3030
__version__ = "0.1.0"
3131

orc/arena/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
"""
66

77
from orc.arena.arena import Arena, ArenaConfig
8-
from orc.arena.trial import TrialResult, Trial
8+
from orc.arena.trial import Trial, TrialResult
99

1010
__all__ = ["Arena", "ArenaConfig", "TrialResult", "Trial"]

orc/arena/arena.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,16 @@
99
- Maintains reputation scores
1010
"""
1111

12-
import asyncio
1312
import random
13+
import uuid
1414
from dataclasses import dataclass, field
1515
from datetime import datetime, timezone
1616
from typing import Any, Callable, Dict, List, Optional, Set
17-
import uuid
1817

19-
from dynabots_core import Agent, TaskResult, Judge, Verdict
18+
from dynabots_core import Agent, Judge, Verdict
2019
from dynabots_core.protocols.storage import ReputationStore
21-
2220
from orc.arena.trial import Trial, TrialResult
23-
from orc.strategies import ChallengeStrategy, AlwaysChallenge
21+
from orc.strategies import AlwaysChallenge, ChallengeStrategy
2422

2523

2624
@dataclass

orc/arena/trial.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
"""
77

88
import asyncio
9+
import uuid
910
from dataclasses import dataclass, field
1011
from datetime import datetime, timezone
1112
from typing import Any, Dict, Optional
12-
import uuid
1313

14-
from dynabots_core import Agent, TaskResult, Judge, Verdict
14+
from dynabots_core import Agent, Judge, TaskResult, Verdict
1515
from dynabots_core.protocols.judge import Submission
1616

1717

@@ -61,7 +61,9 @@ def to_dict(self) -> Dict[str, Any]:
6161
"was_challenged": self.was_challenged,
6262
"verdict": self.verdict.to_dict() if self.verdict else None,
6363
"warlord_result": self.warlord_result.to_dict() if self.warlord_result else None,
64-
"challenger_result": self.challenger_result.to_dict() if self.challenger_result else None,
64+
"challenger_result": (
65+
self.challenger_result.to_dict() if self.challenger_result else None
66+
),
6567
"timestamp": self.timestamp.isoformat(),
6668
"duration_ms": self.duration_ms,
6769
}

orc/judges/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
Judges evaluate trial outcomes and determine winners.
55
"""
66

7+
from orc.judges.consensus_judge import ConsensusJudge
78
from orc.judges.llm_judge import LLMJudge
89
from orc.judges.metrics_judge import MetricsJudge
9-
from orc.judges.consensus_judge import ConsensusJudge
1010

1111
__all__ = ["LLMJudge", "MetricsJudge", "ConsensusJudge"]

orc/judges/llm_judge.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import json
88
from typing import List, Optional
99

10-
from dynabots_core import LLMProvider, LLMMessage, Verdict
10+
from dynabots_core import LLMMessage, LLMProvider, Verdict
1111
from dynabots_core.protocols.judge import Submission
1212

1313

@@ -65,7 +65,8 @@ def _default_system_prompt(self) -> str:
6565
"confidence": 0.0-1.0
6666
}}
6767
68-
Be fair and objective. If submissions are truly equivalent, you may declare a tie by setting winner to "tie".
68+
Be fair and objective. If submissions are truly equivalent,
69+
you may declare a tie by setting winner to "tie".
6970
"""
7071

7172
async def evaluate(

orc/strategies/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
Strategies determine when an agent should challenge the current Warlord.
55
"""
66

7-
from orc.strategies.base import ChallengeStrategy
87
from orc.strategies.always import AlwaysChallenge
9-
from orc.strategies.reputation import ReputationBased
8+
from orc.strategies.base import ChallengeStrategy
109
from orc.strategies.cooldown import CooldownStrategy
10+
from orc.strategies.reputation import ReputationBased
1111
from orc.strategies.specialist import SpecialistStrategy
1212

1313
__all__ = [

orc/themed/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
- TheArena: The stage where warriors compete
88
"""
99

10-
from orc.themed.warrior import Warrior
1110
from orc.themed.elder import Elder
12-
from orc.themed.warchief import Warchief
1311
from orc.themed.the_arena import TheArena
12+
from orc.themed.warchief import Warchief
13+
from orc.themed.warrior import Warrior
1414

1515
__all__ = ["Warrior", "Elder", "Warchief", "TheArena"]

orc/themed/elder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
from dynabots_core import Verdict
1111
from dynabots_core.protocols.judge import Judge, Submission
12-
from orc.judges import MetricsJudge, LLMJudge
12+
from orc.judges import LLMJudge, MetricsJudge
1313

1414

1515
class Elder:

orc/themed/the_arena.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,9 @@
88
from typing import Any, Dict, List, Optional
99

1010
from orc.arena import Arena, ArenaConfig, TrialResult
11-
from orc.judges import MetricsJudge
12-
from orc.themed.warrior import Warrior
1311
from orc.themed.elder import Elder
1412
from orc.themed.warchief import Warchief
13+
from orc.themed.warrior import Warrior
1514

1615

1716
class TheArena(Arena):
@@ -119,6 +118,6 @@ def _themed_on_trial_complete(self, verdict: Any):
119118
"""Themed output when a trial completes."""
120119
winner = verdict.winner
121120
if verdict.is_tie:
122-
print(f" ⚖️ The Elder declares a TIE — Warchief retains the throne!")
121+
print(" ⚖️ The Elder declares a TIE — Warchief retains the throne!")
123122
else:
124123
print(f" ⚖️ The Elder has spoken: {winner} prevails!")

0 commit comments

Comments
 (0)