diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4eac3f8c..12ae10eb 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -55,7 +55,7 @@ repos: additional_dependencies: [pytest-stub==1.1.0, types-docutils~=0.17.5, sphinx~=4.4] - repo: https://github.com/DanielNoord/pydocstringformatter - rev: v0.5.0 + rev: v0.5.2 hooks: - id: pydocstringformatter exclude: *test-data diff --git a/tests/test_utils.py b/tests/test_utils.py index 20d72667..1b44a3ad 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -115,9 +115,7 @@ def test_function_docstrings(self) -> None: ] def test_dictionary_key_value_line(self) -> None: - """Test that we do not classify a line of string key and value pairs - as docstring - """ + """Test that string key-value pairs are not considered a docstring.""" docstrings: List[Tuple[Tuple[int, int], Tuple[int, int]]] = [] with open(self.docstring_data / "dictionary.py", encoding="utf-8") as file: tokens = list(tokenize.generate_tokens(file.readline))