Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions changethelog.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/python
"""Automatically update changelog."""

import sys
from datetime import datetime

Expand Down
12 changes: 5 additions & 7 deletions src/hmf/mass_function/fitting_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
)


Expand Down
Loading