Skip to content

Commit 6dcf3a1

Browse files
Update pydocstringformatter to 0.5.2 (#75)
* Update ``pydocstringformatter`` to ``0.5.2`` * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update docstring Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent a35f6a1 commit 6dcf3a1

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ repos:
5555
additional_dependencies:
5656
[pytest-stub==1.1.0, types-docutils~=0.17.5, sphinx~=4.4]
5757
- repo: https://github.com/DanielNoord/pydocstringformatter
58-
rev: v0.5.0
58+
rev: v0.5.2
5959
hooks:
6060
- id: pydocstringformatter
6161
exclude: *test-data

tests/test_utils.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,7 @@ def test_function_docstrings(self) -> None:
115115
]
116116

117117
def test_dictionary_key_value_line(self) -> None:
118-
"""Test that we do not classify a line of string key and value pairs
119-
as docstring
120-
"""
118+
"""Test that string key-value pairs are not considered a docstring."""
121119
docstrings: List[Tuple[Tuple[int, int], Tuple[int, int]]] = []
122120
with open(self.docstring_data / "dictionary.py", encoding="utf-8") as file:
123121
tokens = list(tokenize.generate_tokens(file.readline))

0 commit comments

Comments
 (0)