Skip to content

Instantly share code, notes, and snippets.

@jaantollander
Last active May 21, 2017 07:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jaantollander/a6eb7f5bb27725b03d6b0b7119ab628f to your computer and use it in GitHub Desktop.
Save jaantollander/a6eb7f5bb27725b03d6b0b7119ab628f to your computer and use it in GitHub Desktop.
Pycharm live templates for various Python patterns
# Pytest
def test_$NAME$():
assert True$END$
# Traitlets
@default('$NAME$')
def _default_$NAME$(self):
return $END$
@observe('$NAMES$')
def _observe_$NAME$(self, change):
$END$
@validate('$NAME$')
def _valid_$NAME$(self, proposal):
return $END$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment