From 8f3dba9f34d37d5fe4aeed5dc1ec883ae7156a1e Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 19 Jan 2026 19:13:38 +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/psf/black-pre-commit-mirror: 25.12.0 → 26.1.0](https://github.com/psf/black-pre-commit-mirror/compare/25.12.0...26.1.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 4a03eac..dafcbf6 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -33,7 +33,7 @@ repos: - flake8-print # Using this mirror lets us use mypyc-compiled black, which is about 2x faster - repo: https://github.com/psf/black-pre-commit-mirror - rev: 25.12.0 + rev: 26.1.0 hooks: - id: black - repo: https://github.com/pre-commit/pygrep-hooks From 32b2f28b167d38c12d2aa4576c0cfc7ae5414ae1 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 19 Jan 2026 19:14:11 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- changethelog.py | 1 + src/hmf/mass_function/fitting_functions.py | 12 +++++------- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/changethelog.py b/changethelog.py index be9ded1..6c176cb 100644 --- a/changethelog.py +++ b/changethelog.py @@ -1,5 +1,6 @@ #!/usr/bin/python """Automatically update changelog.""" + import sys from datetime import datetime diff --git a/src/hmf/mass_function/fitting_functions.py b/src/hmf/mass_function/fitting_functions.py index 6b260f8..36bf4d7 100644 --- a/src/hmf/mass_function/fitting_functions.py +++ b/src/hmf/mass_function/fitting_functions.py @@ -117,21 +117,19 @@ def _makedoc(pdocs, lname, sname, eq, ref): %s mass function fit. For details on attributes, see documentation for :class:`FittingFunction`. - """ - % lname + """ % lname + pdocs + r""" Notes ----- - The %s [1]_ form is: + The {} [1]_ form is: - .. math:: f_{\rm %s}(\sigma) = %s + .. math:: f_{{\rm {}}}(\sigma) = {} References ---------- - .. [1] %s - """ - % (lname, sname, eq, ref) + .. [1] {} + """.format(lname, sname, eq, ref) )