Skip to content

Commit

Permalink
docs: add docstrings to public API methods
Browse files Browse the repository at this point in the history
  • Loading branch information
linuxdaemon committed Apr 18, 2024
1 parent deaf577 commit 1e67e84
Show file tree
Hide file tree
Showing 21 changed files with 297 additions and 212 deletions.
3 changes: 2 additions & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@
"ms-python.black-formatter",
"ms-python.isort",
"ms-azuretools.vscode-docker",
"ms-python.mypy-type-checker"
"ms-python.mypy-type-checker",
"sunipkm.autodocstringpy"
],
"settings": {
"python.defaultInterpreterPath": "~/.virtualenvs/py-irclib/bin/python",
Expand Down
3 changes: 2 additions & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"ms-python.black-formatter",
"ms-python.isort",
"ms-azuretools.vscode-docker",
"ms-python.mypy-type-checker"
"ms-python.mypy-type-checker",
"sunipkm.autodocstringpy"
]
}
4 changes: 3 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,7 @@
"editor.wordBasedSuggestions": "off",
"editor.defaultFormatter": "ms-python.black-formatter"
},
"python.analysis.diagnosticMode": "workspace"
"python.analysis.diagnosticMode": "workspace",
"autoDocstringPy.docstringFormat": "google-notypes",
"autoDocstringPy.startOnNewLine": true
}
2 changes: 1 addition & 1 deletion irclib/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""IRC parser and utility library"""
"""IRC parser and utility library."""

from irclib._version import (
__version__,
Expand Down
4 changes: 2 additions & 2 deletions irclib/errors.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""Library exceptions"""
"""Library exceptions."""

__all__ = ("ParseError",)


class ParseError(ValueError):
"""An exception representing some error during parsing"""
"""An exception representing some error during parsing."""
Loading

0 comments on commit 1e67e84

Please sign in to comment.