From 72c3ccfb6de4836752443b7564c9e7f133070302 Mon Sep 17 00:00:00 2001 From: Richie Cahill Date: Sat, 29 Nov 2025 13:13:15 -0500 Subject: [PATCH] ran ruff check python --fix --- pyproject.toml | 1 + python/splendor/bot.py | 2 +- python/splendor/simulat.py | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 19bba30..6bc8e6c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -50,6 +50,7 @@ lint.ignore = [ "python/splendor/**" = [ "S311", # (perm) there is no security issue here + "T201", # (perm) I don't care about print statements dir ] [tool.ruff.lint.pydocstyle] diff --git a/python/splendor/bot.py b/python/splendor/bot.py index ac1904a..ffe4303 100644 --- a/python/splendor/bot.py +++ b/python/splendor/bot.py @@ -226,7 +226,7 @@ class PersonalizedBot4(Strategy): return [ action for action in actions - if isinstance(action, TakeDifferent) and len(action.colors) == 3 or not isinstance(action, TakeDifferent) + if (isinstance(action, TakeDifferent) and len(action.colors) == 3) or not isinstance(action, TakeDifferent) ] def choose_action(self, game: GameState, player: PlayerState) -> Action | None: diff --git a/python/splendor/simulat.py b/python/splendor/simulat.py index db60853..0d3b0dc 100644 --- a/python/splendor/simulat.py +++ b/python/splendor/simulat.py @@ -7,7 +7,7 @@ from pathlib import Path from statistics import mean from .base import GameConfig, load_cards, load_nobles, new_game, run_game -from .bot import PersonalizedBot, PersonalizedBot4, PersonalizedBot3, RandomBot +from .bot import PersonalizedBot4, RandomBot def main() -> None: