From a3b1b6ddf81cdc0b253f15feeb167ff348afd14f Mon Sep 17 00:00:00 2001 From: Eric Lin Date: Tue, 5 Jan 2021 11:29:39 -0500 Subject: Changed isort to force wrapping of imports to reduce merge conflicts from minor import changes. --- plugins/template/cmd2_myplugin/__init__.py | 5 ++++- plugins/template/cmd2_myplugin/myplugin.py | 5 ++++- plugins/template/tests/test_myplugin.py | 4 +++- 3 files changed, 11 insertions(+), 3 deletions(-) (limited to 'plugins/template') 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, +) ###### # -- cgit v1.2.1