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: