Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #526

Merged
merged 2 commits into from
Feb 5, 2024
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 @@ -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
Loading