From fd6faf6278a1d27bcf14bb79b36a12f8c79248d4 Mon Sep 17 00:00:00 2001 From: Darren Burns Date: Tue, 10 Dec 2024 18:26:10 +0000 Subject: [PATCH] Add target-version py38 to ruff config in pyproject.toml, and remove formatter comments --- pyproject.toml | 3 +++ src/textual/app.py | 2 -- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 869a5784c1..9f3ac5ffc2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -40,6 +40,9 @@ include = [ [tool.poetry.urls] "Bug Tracker" = "https://github.com/Textualize/textual/issues" +[tool.ruff] +target-version = "py38" + [tool.poetry.dependencies] python = "^3.8.1" markdown-it-py = { extras = ["plugins", "linkify"], version = ">=2.1.0" } diff --git a/src/textual/app.py b/src/textual/app.py index a259a63585..6c0c10e8d2 100644 --- a/src/textual/app.py +++ b/src/textual/app.py @@ -4355,12 +4355,10 @@ def suspend(self) -> Iterator[None]: # app, and we don't want to have the driver auto-restart # application mode when the application comes back to the # foreground, in this context. - # fmt: off with self._driver.no_automatic_restart(), redirect_stdout( sys.__stdout__ ), redirect_stderr(sys.__stderr__): yield - # fmt: on # We're done with the dev's code so resume application mode. self._driver.resume_application_mode() # ...and publish a resume signal.