diff options
author | Eric Lin <anselor@gmail.com> | 2021-01-05 11:29:39 -0500 |
---|---|---|
committer | Eric Lin <anselor@gmail.com> | 2021-01-21 10:24:08 -0500 |
commit | f1f76a4ba207d802f78277d0ba3defa44cf7b973 (patch) | |
tree | 0a59103b35e9160aed2466fdafa0f8020c426bcc /plugins/template | |
parent | e0dee46ca871e56523059b1566577ff781f6fb63 (diff) | |
download | cmd2-git-import_wrapping.tar.gz |
Changed isort to force wrapping of imports to reduce merge conflicts from minor import changes.import_wrapping
Diffstat (limited to 'plugins/template')
-rw-r--r-- | plugins/template/cmd2_myplugin/__init__.py | 5 | ||||
-rw-r--r-- | plugins/template/cmd2_myplugin/myplugin.py | 5 | ||||
-rw-r--r-- | plugins/template/tests/test_myplugin.py | 4 |
3 files changed, 11 insertions, 3 deletions
diff --git a/plugins/template/cmd2_myplugin/__init__.py b/plugins/template/cmd2_myplugin/__init__.py index 838d828a..daa20e71 100644 --- a/plugins/template/cmd2_myplugin/__init__.py +++ b/plugins/template/cmd2_myplugin/__init__.py @@ -5,7 +5,10 @@ An overview of what myplugin does. """ -from .myplugin import MyPluginMixin, empty_decorator # noqa: F401 +from .myplugin import ( # noqa: F401 + MyPluginMixin, + empty_decorator, +) try: # For python 3.8 and later diff --git a/plugins/template/cmd2_myplugin/myplugin.py b/plugins/template/cmd2_myplugin/myplugin.py index 816198b0..c0467366 100644 --- a/plugins/template/cmd2_myplugin/myplugin.py +++ b/plugins/template/cmd2_myplugin/myplugin.py @@ -3,7 +3,10 @@ """An example cmd2 plugin""" import functools -from typing import TYPE_CHECKING, Callable +from typing import ( + TYPE_CHECKING, + Callable, +) import cmd2 diff --git a/plugins/template/tests/test_myplugin.py b/plugins/template/tests/test_myplugin.py index d61181a6..a61490ca 100644 --- a/plugins/template/tests/test_myplugin.py +++ b/plugins/template/tests/test_myplugin.py @@ -2,7 +2,9 @@ # coding=utf-8 import cmd2_myplugin -from cmd2 import cmd2 +from cmd2 import ( + cmd2, +) ###### # |