From 39c9f60195fe21f28aa047d25c4179555c7af974 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 30 Jan 2024 00:51:25 +0000 Subject: [PATCH] [pre-commit.ci] pre-commit autoupdate (#267) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .pre-commit-config.yaml | 2 +- spiel/demo/demo.py | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4da680b..3713f61 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -38,7 +38,7 @@ repos: - id: ruff args: [ --fix, --exit-non-zero-on-fix ] - repo: https://github.com/psf/black - rev: 23.12.1 + rev: 24.1.1 hooks: - id: black - repo: local diff --git a/spiel/demo/demo.py b/spiel/demo/demo.py index ce3fc40..560937f 100644 --- a/spiel/demo/demo.py +++ b/spiel/demo/demo.py @@ -191,9 +191,11 @@ def dynamic() -> RenderableType: Align.center( Panel( Text( - f"Your terminal is {width} cells wide (try resizing it or adjusting your font size!)" - if width > width_limit - else f"Your terminal is only {width} cells wide! Get a bigger monitor!", + ( + f"Your terminal is {width} cells wide (try resizing it or adjusting your font size!)" + if width > width_limit + else f"Your terminal is only {width} cells wide! Get a bigger monitor!" + ), style=Style(color="green1" if width > width_limit else "red"), justify="center", )