Skip to content

Commit 8e2d545

Browse files
[pre-commit.ci] pre-commit autoupdate (#526)
* [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>
1 parent eb08110 commit 8e2d545

File tree

6 files changed

+10
-4
lines changed

6 files changed

+10
-4
lines changed

.pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ repos:
1717
- id: check-added-large-files
1818

1919
- repo: https://github.com/psf/black
20-
rev: ec91a2be3c44d88e1a3960a4937ad6ed3b63464e # frozen: 23.12.1
20+
rev: e026c93888f91a47a9c9f4e029f3eb07d96375e6 # frozen: 24.1.1
2121
hooks:
2222
- id: black
2323

numpydoc/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
This package provides the numpydoc Sphinx extension for handling docstrings
33
formatted according to the NumPy documentation format.
44
"""
5+
56
from ._version import __version__
67

78

numpydoc/__main__.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Implementing `python -m numpydoc` functionality.
33
"""
4+
45
import sys
56
import argparse
67
import ast

numpydoc/docscrape.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""Extract reference documentation from the NumPy source tree.
22
33
"""
4+
45
import inspect
56
import textwrap
67
import re

numpydoc/docscrape_sphinx.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -373,9 +373,11 @@ def __str__(self, indent=0, func_role="obj"):
373373
"notes": self._str_section("Notes"),
374374
"references": self._str_references(),
375375
"examples": self._str_examples(),
376-
"attributes": self._str_param_list("Attributes", fake_autosummary=True)
377-
if self.attributes_as_param_list
378-
else self._str_member_list("Attributes"),
376+
"attributes": (
377+
self._str_param_list("Attributes", fake_autosummary=True)
378+
if self.attributes_as_param_list
379+
else self._str_member_list("Attributes")
380+
),
379381
"methods": self._str_member_list("Methods"),
380382
}
381383
ns = {k: "\n".join(v) for k, v in ns.items()}

numpydoc/numpydoc.py

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
.. [1] https://github.com/numpy/numpydoc
1717
1818
"""
19+
1920
from copy import deepcopy
2021
import re
2122
import pydoc

0 commit comments

Comments
 (0)