Skip to content

Commit

Permalink
docs: Document inherited PluginBase attributes and methods (#1243)
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarrmondragon authored Dec 6, 2022
1 parent c94ae17 commit faed940
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 2 deletions.
10 changes: 10 additions & 0 deletions docs/_templates/plugin_class.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{{ fullname }}
{{ "=" * fullname|length }}

.. currentmodule:: {{ module }}

.. autoclass:: {{ name }}
:members:
:show-inheritance:
:inherited-members:
:special-members: __init__
2 changes: 2 additions & 0 deletions docs/classes/singer_sdk.InlineMapper.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@

.. autoclass:: InlineMapper
:members:
:show-inheritance:
:inherited-members:
:special-members: __init__
2 changes: 2 additions & 0 deletions docs/classes/singer_sdk.SQLTap.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@

.. autoclass:: SQLTap
:members:
:show-inheritance:
:inherited-members:
:special-members: __init__
2 changes: 2 additions & 0 deletions docs/classes/singer_sdk.SQLTarget.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@

.. autoclass:: SQLTarget
:members:
:show-inheritance:
:inherited-members:
:special-members: __init__
2 changes: 2 additions & 0 deletions docs/classes/singer_sdk.Tap.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@

.. autoclass:: Tap
:members:
:show-inheritance:
:inherited-members:
:special-members: __init__
2 changes: 2 additions & 0 deletions docs/classes/singer_sdk.Target.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@

.. autoclass:: Target
:members:
:show-inheritance:
:inherited-members:
:special-members: __init__
2 changes: 1 addition & 1 deletion docs/reference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Plugin Classes

.. autosummary::
:toctree: classes
:template: class.rst
:template: plugin_class.rst

Tap
Target
Expand Down
4 changes: 3 additions & 1 deletion singer_sdk/plugin_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,9 @@ def print_version(
Args:
print_fn: A function to use to display the plugin version.
Defaults to :function:`print`.
Defaults to `print`_.
.. _print: https://docs.python.org/3/library/functions.html#print
"""
print_fn(f"{cls.name} v{cls.plugin_version}, Meltano SDK v{cls.sdk_version}")

Expand Down

0 comments on commit faed940

Please sign in to comment.