Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#267)
Browse files Browse the repository at this point in the history
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] authored Jan 30, 2024
1 parent 5c08622 commit 39c9f60
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 5 additions & 3 deletions spiel/demo/demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
)
Expand Down

0 comments on commit 39c9f60

Please sign in to comment.