Skip to content

Commit 1e67e84

Browse files
committed
docs: add docstrings to public API methods
1 parent deaf577 commit 1e67e84

21 files changed

Lines changed: 297 additions & 212 deletions

.devcontainer/devcontainer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@
3838
"ms-python.black-formatter",
3939
"ms-python.isort",
4040
"ms-azuretools.vscode-docker",
41-
"ms-python.mypy-type-checker"
41+
"ms-python.mypy-type-checker",
42+
"sunipkm.autodocstringpy"
4243
],
4344
"settings": {
4445
"python.defaultInterpreterPath": "~/.virtualenvs/py-irclib/bin/python",

.vscode/extensions.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"ms-python.black-formatter",
1111
"ms-python.isort",
1212
"ms-azuretools.vscode-docker",
13-
"ms-python.mypy-type-checker"
13+
"ms-python.mypy-type-checker",
14+
"sunipkm.autodocstringpy"
1415
]
1516
}

.vscode/settings.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,7 @@
1111
"editor.wordBasedSuggestions": "off",
1212
"editor.defaultFormatter": "ms-python.black-formatter"
1313
},
14-
"python.analysis.diagnosticMode": "workspace"
14+
"python.analysis.diagnosticMode": "workspace",
15+
"autoDocstringPy.docstringFormat": "google-notypes",
16+
"autoDocstringPy.startOnNewLine": true
1517
}

irclib/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""IRC parser and utility library"""
1+
"""IRC parser and utility library."""
22

33
from irclib._version import (
44
__version__,

irclib/errors.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
"""Library exceptions"""
1+
"""Library exceptions."""
22

33
__all__ = ("ParseError",)
44

55

66
class ParseError(ValueError):
7-
"""An exception representing some error during parsing"""
7+
"""An exception representing some error during parsing."""

0 commit comments

Comments
 (0)