diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b294ed1098..89d0b08bf0 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -12,7 +12,7 @@ repos: exclude: test_data - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.6.5 + rev: v0.6.7 hooks: - id: ruff args: [--fix] diff --git a/bluemira/base/logs.py b/bluemira/base/logs.py index 813c501e8c..66ef95cd3c 100644 --- a/bluemira/base/logs.py +++ b/bluemira/base/logs.py @@ -198,7 +198,7 @@ def _bm_print(string: str, width: int = 73, *, single_flush: bool = False) -> st return _bm_print_singleflush(string, width) strings = [ - " " if s == "\n" and i != 0 else s[:-1] if s.endswith("\n") else s + " " if s == "\n" and i != 0 else s.removesuffix("\n") for i, s in enumerate(string.splitlines(keepends=True)) ] t = [ diff --git a/pyproject.toml b/pyproject.toml index 395010a741..b718b0e46c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -65,7 +65,7 @@ dev = [ "pytest-html", "pytest-metadata", "pytest-json-report", - "ruff==0.6.5", + "ruff==0.6.7", "sphinx", "sphinx-autoapi", "sphinx_copybutton", diff --git a/requirements/uv/all.txt b/requirements/uv/all.txt index 577ef87093..ec6e65cf52 100644 --- a/requirements/uv/all.txt +++ b/requirements/uv/all.txt @@ -472,7 +472,7 @@ rpds-py==0.20.0 # via # jsonschema # referencing -ruff==0.6.5 +ruff==0.6.7 # via bluemira (pyproject.toml) scikit-learn==1.5.2 # via bluemira (pyproject.toml) diff --git a/requirements/uv/develop.txt b/requirements/uv/develop.txt index 800f4c8017..f87ea336a9 100644 --- a/requirements/uv/develop.txt +++ b/requirements/uv/develop.txt @@ -339,7 +339,7 @@ rpds-py==0.20.0 # via # jsonschema # referencing -ruff==0.6.5 +ruff==0.6.7 # via bluemira (pyproject.toml) scikit-learn==1.5.2 # via bluemira (pyproject.toml)