Skip to content

Instantly share code, notes, and snippets.

@aaronsteers
Created December 17, 2021 17:36
Show Gist options
  • Save aaronsteers/57b86ea3fb066f456b3ecf781c91d1de to your computer and use it in GitHub Desktop.
Save aaronsteers/57b86ea3fb066f456b3ecf781c91d1de to your computer and use it in GitHub Desktop.
Meltano Docstring Template for Python projects
{{! Meltano Docstring Template - Same as Google but delegates type hinting to the function signature
Save locally and use with this VS Code extension:
https://marketplace.visualstudio.com/items?itemName=njpwerner.autodocstring }}
{{summaryPlaceholder}}
{{extendedSummaryPlaceholder}}
{{#parametersExist}}
Args:
{{#args}}
{{var}}: {{descriptionPlaceholder}}
{{/args}}
{{#kwargs}}
{{var}}: {{descriptionPlaceholder}}. Defaults to {{&default}}.
{{/kwargs}}
{{/parametersExist}}
{{#exceptionsExist}}
Raises:
{{#exceptions}}
{{type}}: {{descriptionPlaceholder}}
{{/exceptions}}
{{/exceptionsExist}}
{{#returnsExist}}
Returns:
{{#returns}}
{{descriptionPlaceholder}}
{{/returns}}
{{/returnsExist}}
{{#yieldsExist}}
Yields:
{{#yields}}
{{descriptionPlaceholder}}
{{/yields}}
{{/yieldsExist}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment