From 9cb49fb2a3b980f97d5fb27ea37c6dfeee3b9ec4 Mon Sep 17 00:00:00 2001 From: Todd Leonhardt Date: Sun, 31 Jan 2021 23:24:47 -0500 Subject: Add in isort changes --- plugins/ext_test/cmd2_ext_test/__init__.py | 4 +++- plugins/ext_test/examples/example.py | 3 ++- plugins/ext_test/tests/test_ext_test.py | 2 +- plugins/tasks.py | 8 ++++++-- plugins/template/examples/example.py | 3 ++- plugins/template/tests/test_myplugin.py | 5 ++++- 6 files changed, 18 insertions(+), 7 deletions(-) (limited to 'plugins') diff --git a/plugins/ext_test/cmd2_ext_test/__init__.py b/plugins/ext_test/cmd2_ext_test/__init__.py index 2cc38807..f246e822 100644 --- a/plugins/ext_test/cmd2_ext_test/__init__.py +++ b/plugins/ext_test/cmd2_ext_test/__init__.py @@ -17,6 +17,8 @@ except importlib_metadata.PackageNotFoundError: # pragma: no cover # package is not installed __version__ = 'unknown' -from .cmd2_ext_test import ExternalTestMixin +from .cmd2_ext_test import ( + ExternalTestMixin, +) __all__ = ['ExternalTestMixin'] diff --git a/plugins/ext_test/examples/example.py b/plugins/ext_test/examples/example.py index 3bfdf7e7..7dbb6677 100644 --- a/plugins/ext_test/examples/example.py +++ b/plugins/ext_test/examples/example.py @@ -1,9 +1,10 @@ # # coding=utf-8 # import cmd2 +import cmd2_ext_test + import cmd2 import cmd2.py_bridge -import cmd2_ext_test class Example(cmd2.Cmd): diff --git a/plugins/ext_test/tests/test_ext_test.py b/plugins/ext_test/tests/test_ext_test.py index 39783158..037157f1 100644 --- a/plugins/ext_test/tests/test_ext_test.py +++ b/plugins/ext_test/tests/test_ext_test.py @@ -1,9 +1,9 @@ # # coding=utf-8 +import cmd2_ext_test import pytest -import cmd2_ext_test from cmd2 import ( CommandResult, cmd2, diff --git a/plugins/tasks.py b/plugins/tasks.py index eed69c73..a22eb310 100644 --- a/plugins/tasks.py +++ b/plugins/tasks.py @@ -10,8 +10,12 @@ Make sure you satisfy the following Python module requirements if you are trying """ import invoke -from plugins.ext_test import tasks as ext_test_tasks -from plugins.template import tasks as template_tasks +from plugins.ext_test import ( + tasks as ext_test_tasks, +) +from plugins.template import ( + tasks as template_tasks, +) # create namespaces namespace = invoke.Collection( diff --git a/plugins/template/examples/example.py b/plugins/template/examples/example.py index 49a3df01..b071b5f8 100644 --- a/plugins/template/examples/example.py +++ b/plugins/template/examples/example.py @@ -1,9 +1,10 @@ # # coding=utf-8 -import cmd2 import cmd2_myplugin +import cmd2 + class Example(cmd2_myplugin.MyPlugin, cmd2.Cmd): """An class to show how to use a plugin""" diff --git a/plugins/template/tests/test_myplugin.py b/plugins/template/tests/test_myplugin.py index 8d29b3b1..06ca2567 100644 --- a/plugins/template/tests/test_myplugin.py +++ b/plugins/template/tests/test_myplugin.py @@ -2,7 +2,10 @@ # coding=utf-8 import cmd2_myplugin -from cmd2 import cmd2 + +from cmd2 import ( + cmd2, +) ###### # -- cgit v1.2.1