diff options
| author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2021-01-31 23:24:47 -0500 |
|---|---|---|
| committer | Todd Leonhardt <todd.leonhardt@gmail.com> | 2021-01-31 23:24:47 -0500 |
| commit | 9cb49fb2a3b980f97d5fb27ea37c6dfeee3b9ec4 (patch) | |
| tree | 6d03d9b69ca6472211deb512ab80469f7b7d4802 /plugins | |
| parent | 43be550b235f88007c4c1792a7caff38c5ba271f (diff) | |
| download | cmd2-git-9cb49fb2a3b980f97d5fb27ea37c6dfeee3b9ec4.tar.gz | |
Add in isort changes
Diffstat (limited to 'plugins')
| -rw-r--r-- | plugins/ext_test/cmd2_ext_test/__init__.py | 4 | ||||
| -rw-r--r-- | plugins/ext_test/examples/example.py | 3 | ||||
| -rw-r--r-- | plugins/ext_test/tests/test_ext_test.py | 2 | ||||
| -rw-r--r-- | plugins/tasks.py | 8 | ||||
| -rw-r--r-- | plugins/template/examples/example.py | 3 | ||||
| -rw-r--r-- | plugins/template/tests/test_myplugin.py | 5 |
6 files changed, 18 insertions, 7 deletions
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, +) ###### # |
