diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index fbcbb9f..e15ca83 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.4.1 + rev: v0.4.2 hooks: - id: ruff - id: ruff-format diff --git a/pyproject.toml b/pyproject.toml index f5c5bf3..4a8fc7f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -49,7 +49,7 @@ exclude = ["docs/_build/"] src = ["src"] fix = true show-fixes = true -show-source = true +output-format = "full" [tool.ruff.lint] ignore = ["E203", "E266", "E501", "E731"] diff --git a/src/doitlive/python_consoles.py b/src/doitlive/python_consoles.py index 0385ba2..cac536f 100644 --- a/src/doitlive/python_consoles.py +++ b/src/doitlive/python_consoles.py @@ -57,7 +57,7 @@ def interact(self, banner=None): if banner is None: self.write(f"Python {sys.version} on {sys.platform}\n{cprt}\n") else: - self.write("%s\n" % str(banner)) + self.write(f"{banner}\n") self.run_commands()