Skip to content

Commit e77dbb9

Browse files
Update pre-commit (#449)
* Update pre-commit * Run pre-commit on all files
1 parent fe95e8b commit e77dbb9

File tree

5 files changed

+6
-9
lines changed

5 files changed

+6
-9
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
repos:
55
- repo: https://github.com/pre-commit/pre-commit-hooks
6-
rev: v4.3.0
6+
rev: v4.4.0
77
hooks:
88
- id: trailing-whitespace
99
- id: end-of-file-fixer
@@ -17,7 +17,7 @@ repos:
1717
- id: check-added-large-files
1818

1919
- repo: https://github.com/psf/black
20-
rev: 22.8.0
20+
rev: 23.1.0
2121
hooks:
2222
- id: black
2323

@@ -29,12 +29,12 @@ repos:
2929
args: [--prose-wrap=preserve]
3030

3131
- repo: https://github.com/asottile/blacken-docs
32-
rev: v1.12.1
32+
rev: 1.13.0
3333
hooks:
3434
- id: blacken-docs
3535

3636
- repo: https://github.com/asottile/pyupgrade
37-
rev: v2.38.2
37+
rev: v3.3.1
3838
hooks:
3939
- id: pyupgrade
4040
args: [--py37-plus]

numpydoc/docscrape.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ def _parse(self):
408408
msg = "Docstring contains a Receives section but not Yields."
409409
raise ValueError(msg)
410410

411-
for (section, content) in sections:
411+
for section, content in sections:
412412
if not section.startswith(".."):
413413
section = (s.capitalize() for s in section.split(" "))
414414
section = " ".join(section)
@@ -631,7 +631,6 @@ def __init__(self, obj, doc=None, config=None):
631631

632632

633633
class ClassDoc(NumpyDocString):
634-
635634
extra_public_methods = ["__call__"]
636635

637636
def __init__(self, cls, doc=None, modulename="", func_doc=FunctionDoc, config=None):

numpydoc/tests/test_docscrape.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1443,7 +1443,6 @@ def __set__(self, obj, value):
14431443
obj._set_axis(self.axis, value)
14441444

14451445
class Dummy:
1446-
14471446
attr = SpecialProperty(doc="test attribute")
14481447

14491448
doc = get_doc_object(Dummy)

numpydoc/tests/test_validate.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,6 @@ class BadGenericDocStrings:
545545
"""Everything here has a bad docstring"""
546546

547547
def func(self):
548-
549548
"""Some function.
550549
551550
With several mistakes in the docstring.

requirements/developer.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
pre-commit>=2.20
1+
pre-commit>=3.0

0 commit comments

Comments
 (0)