style: strip trailing periods from all series blurbs
CI / Lint (push) Successful in 13s
CI / Test (push) Successful in 16s
CI / Build & Push (push) Successful in 15s

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-23 12:21:23 -04:00
parent b8819167f5
commit 58b27ddd20
2 changed files with 5 additions and 5 deletions
+4 -4
View File
@@ -118,17 +118,17 @@ def series_blurb(game):
# the next matchup \u2014 fall through to a generic series-score blurb instead.
if not is_final:
if state["is_game7"]:
return "Win-or-go-home."
return "Win-or-go-home"
if state["is_clincher"] and leader_name:
return f"{leader_name} can close it out."
return f"{leader_name} can close it out"
if state["is_pivotal"]:
return "Series tied 2\u20112 \u2014 pivotal."
return "Series tied 2\u20112 \u2014 pivotal"
if state["is_opener"]:
return "Series opener"
if leader_name and trailer_name:
return f"{leader_name} lead {state['hi']}\u2011{state['lo']}"
if state["hi"] == state["lo"]:
return f"Series even at {state['hi']}\u2011{state['lo']}."
return f"Series even at {state['hi']}\u2011{state['lo']}"
return ""
+1 -1
View File
@@ -73,7 +73,7 @@ class TestSeriesBlurb:
def test_game7_blurb(self):
game = make_playoff_game(top_wins=3, bottom_wins=3)
assert series_blurb(game) == "Win-or-go-home."
assert series_blurb(game) == "Win-or-go-home"
def test_clincher_blurb_names_leader(self):
game = make_playoff_game(