Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 1 addition & 3 deletions tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down