Last active
May 21, 2017 07:03
-
-
Save jaantollander/a6eb7f5bb27725b03d6b0b7119ab628f to your computer and use it in GitHub Desktop.
Pycharm live templates for various Python patterns
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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