[claude] Fix ruff S105/S106/B017/E402 errors in bannerlord (#1161) (#1165)

Co-authored-by: Claude (Opus 4.6) <claude@hermes.local>
Co-committed-by: Claude (Opus 4.6) <claude@hermes.local>
This commit is contained in:
2026-03-23 19:56:07 +00:00
committed by Timmy Time
parent dec9736679
commit 0d73a4ff7a
4 changed files with 82 additions and 39 deletions

View File

@@ -15,7 +15,6 @@ from bannerlord.models import (
WarReward,
)
# ── KingSubgoal ───────────────────────────────────────────────────────────────
@@ -35,7 +34,7 @@ class TestKingSubgoal:
KingSubgoal(token="NUKE_CALRADIA")
def test_priority_clamp(self):
with pytest.raises(Exception):
with pytest.raises(ValueError):
KingSubgoal(token="TRADE", priority=3.0)
def test_optional_fields_default_none(self):