Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#526)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/psf/black: ec91a2be3c44d88e1a3960a4937ad6ed3b63464e → e026c93888f91a47a9c9f4e029f3eb07d96375e6](psf/black@ec91a2b...e026c93)

* '[pre-commit.ci 🤖] Apply code format tools to PR'

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] committed Feb 5, 2024
1 parent eb08110 commit 8e2d545
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ repos:
- id: check-added-large-files

- repo: https://github.com/psf/black
rev: ec91a2be3c44d88e1a3960a4937ad6ed3b63464e # frozen: 23.12.1
rev: e026c93888f91a47a9c9f4e029f3eb07d96375e6 # frozen: 24.1.1
hooks:
- id: black

Expand Down
1 change: 1 addition & 0 deletions numpydoc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
This package provides the numpydoc Sphinx extension for handling docstrings
formatted according to the NumPy documentation format.
"""

from ._version import __version__


Expand Down
1 change: 1 addition & 0 deletions numpydoc/__main__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Implementing `python -m numpydoc` functionality.
"""

import sys
import argparse
import ast
Expand Down
1 change: 1 addition & 0 deletions numpydoc/docscrape.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""Extract reference documentation from the NumPy source tree.
"""

import inspect
import textwrap
import re
Expand Down
8 changes: 5 additions & 3 deletions numpydoc/docscrape_sphinx.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,9 +373,11 @@ def __str__(self, indent=0, func_role="obj"):
"notes": self._str_section("Notes"),
"references": self._str_references(),
"examples": self._str_examples(),
"attributes": self._str_param_list("Attributes", fake_autosummary=True)
if self.attributes_as_param_list
else self._str_member_list("Attributes"),
"attributes": (
self._str_param_list("Attributes", fake_autosummary=True)
if self.attributes_as_param_list
else self._str_member_list("Attributes")
),
"methods": self._str_member_list("Methods"),
}
ns = {k: "\n".join(v) for k, v in ns.items()}
Expand Down
1 change: 1 addition & 0 deletions numpydoc/numpydoc.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
.. [1] https://github.com/numpy/numpydoc
"""

from copy import deepcopy
import re
import pydoc
Expand Down

0 comments on commit 8e2d545

Please sign in to comment.