[claude] Fix ruff S105/S106/B017/E402 errors in bannerlord (#1161) #1165
Reference in New Issue
Block a user
Delete Branch ":claude/issue-1161"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #1161
Changes
# noqa: S106toKingSubgoal(token="RECRUIT")fallback inking.py(false positive: "RECRUIT" is a game command token, not a password)# noqa: S105to allsubgoal.token == "..."comparisons invassals.py(same: game command strings, not passwords)pytest.raises(Exception)topytest.raises(ValueError)intest_models.pyto fix B017 blind exceptionpytestmarkassignment after local imports intest_metabolic_router.pyto fix E402tox -e formatandtox -e unitboth pass cleanly.