From f8612717e3dbea7aa68fe986ae29c9edee1fe4fb Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 27 Jul 2026 19:05:24 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/astral-sh/ruff-pre-commit: v0.15.22 → v0.16.0](https://github.com/astral-sh/ruff-pre-commit/compare/v0.15.22...v0.16.0) --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6fa8df2..f9b8575 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -27,7 +27,7 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. - rev: v0.15.22 + rev: v0.16.0 hooks: # Run the linter. - id: ruff From 09f96f749394e4c6cd1056583becd92b0f8d4499 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 27 Jul 2026 19:05:41 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/hmf/_internals/_cache.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/hmf/_internals/_cache.py b/src/hmf/_internals/_cache.py index de2d0fd..89d273f 100644 --- a/src/hmf/_internals/_cache.py +++ b/src/hmf/_internals/_cache.py @@ -356,8 +356,7 @@ def _get_property(self): # Here we set the documentation doc = (f.__doc__ or "").strip() - if doc.startswith("\n"): - doc = doc[1:] + doc = doc.removeprefix("\n") return property(_get_property, _set_property, None, "**Parameter**: " + doc)