Skip to content

Commit 80034b8

Browse files
authored
Update versions in pre-commit config (#100)
1 parent 4163618 commit 80034b8

File tree

14 files changed

+19
-9
lines changed

14 files changed

+19
-9
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
repos:
22

33
- repo: https://github.com/pycqa/isort
4-
rev: 5.12.0
4+
rev: 6.0.1
55
hooks:
66
- id: isort
77
additional_dependencies: [toml]
88
- repo: https://github.com/psf/black
9-
rev: 22.3.0
9+
rev: 25.1.0
1010
hooks:
1111
- id: black
1212
- repo: https://github.com/pycqa/pylint
13-
rev: v2.13.7
13+
rev: v3.3.7
1414
hooks:
1515
- id: pylint
1616
additional_dependencies: [toml]

docstring_parser/common.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Common methods for parsing."""
2+
23
import enum
34
import typing as T
45

docstring_parser/epydoc.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
33
.. seealso:: http://epydoc.sourceforge.net/manual-fields.html
44
"""
5+
56
import inspect
67
import re
78
import typing as T
@@ -120,7 +121,7 @@ def parse(text: str) -> Docstring:
120121

121122
# Combine type_name, arg_name, and description information
122123
params: T.Dict[str, T.Dict[str, T.Any]] = {}
123-
for (base, key, args, desc) in stream:
124+
for base, key, args, desc in stream:
124125
if base not in ["param", "return"]:
125126
continue # nothing to do
126127

@@ -137,7 +138,7 @@ def parse(text: str) -> Docstring:
137138
)
138139

139140
is_done: T.Dict[str, bool] = {}
140-
for (base, key, args, desc) in stream:
141+
for base, key, args, desc in stream:
141142
if base == "param" and not is_done.get(args[0], False):
142143
(arg_name,) = args
143144
info = params[arg_name]

docstring_parser/google.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ def compose(
309309
"""
310310

311311
def process_one(
312-
one: T.Union[DocstringParam, DocstringReturns, DocstringRaises]
312+
one: T.Union[DocstringParam, DocstringReturns, DocstringRaises],
313313
):
314314
head = ""
315315

docstring_parser/numpydoc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ def compose(
393393
"""
394394

395395
def process_one(
396-
one: T.Union[DocstringParam, DocstringReturns, DocstringRaises]
396+
one: T.Union[DocstringParam, DocstringReturns, DocstringRaises],
397397
):
398398
if isinstance(one, DocstringParam):
399399
head = one.arg_name

docstring_parser/rest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ def parse(text: str) -> Docstring:
161161
meta.type_name = meta.type_name or rtypes.get(meta.return_name)
162162

163163
if not any(isinstance(m, DocstringReturns) for m in ret.meta) and rtypes:
164-
for (return_name, type_name) in rtypes.items():
164+
for return_name, type_name in rtypes.items():
165165
ret.meta.append(
166166
DocstringReturns(
167167
args=[],

docstring_parser/tests/test_epydoc.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Tests for epydoc-style docstring routines."""
2+
23
import typing as T
34

45
import pytest

docstring_parser/tests/test_google.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Tests for Google-style docstring routines."""
2+
23
import typing as T
34

45
import pytest

docstring_parser/tests/test_numpydoc.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Tests for numpydoc-style docstring routines."""
2+
23
import typing as T
34

45
import pytest

docstring_parser/tests/test_parse_from_object.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Tests for parse_from_object function and attribute docstrings."""
2+
23
from unittest.mock import patch
34

45
from docstring_parser import parse_from_object

0 commit comments

Comments
 (0)