Skip to content

Commit

Permalink
Add target-version py38 to ruff config in pyproject.toml, and remove …
Browse files Browse the repository at this point in the history
…formatter comments
  • Loading branch information
darrenburns committed Dec 10, 2024
1 parent bf0c724 commit fd6faf6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
Expand Down
2 changes: 0 additions & 2 deletions src/textual/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit fd6faf6

Please sign in to comment.