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", )