diff --git a/mypy.ini b/mypy.ini index 1bb94ba..0022588 100644 --- a/mypy.ini +++ b/mypy.ini @@ -27,3 +27,6 @@ ignore_missing_imports = True [mypy-textx] ignore_missing_imports = True + +[mypy-docker.*] +ignore_missing_imports = True diff --git a/scone/__init__.py b/scone/__init__.py index 7cca6de..541a557 100644 --- a/scone/__init__.py +++ b/scone/__init__.py @@ -14,4 +14,3 @@ # # You should have received a copy of the GNU General Public License # along with Scone. If not, see . - diff --git a/scone/common/__init__.py b/scone/common/__init__.py index 7cca6de..541a557 100644 --- a/scone/common/__init__.py +++ b/scone/common/__init__.py @@ -14,4 +14,3 @@ # # You should have received a copy of the GNU General Public License # along with Scone. If not, see . - diff --git a/scone/default/__init__.py b/scone/default/__init__.py index 7cca6de..541a557 100644 --- a/scone/default/__init__.py +++ b/scone/default/__init__.py @@ -14,4 +14,3 @@ # # You should have received a copy of the GNU General Public License # along with Scone. If not, see . - diff --git a/scone/default/recipes/__init__.py b/scone/default/recipes/__init__.py index 7cca6de..541a557 100644 --- a/scone/default/recipes/__init__.py +++ b/scone/default/recipes/__init__.py @@ -14,4 +14,3 @@ # # You should have received a copy of the GNU General Public License # along with Scone. If not, see . - diff --git a/scone/default/recipes/docker.py b/scone/default/recipes/docker.py index 3d61025..6b4081d 100644 --- a/scone/default/recipes/docker.py +++ b/scone/default/recipes/docker.py @@ -1,8 +1,8 @@ from scone.default.utensils.docker_utensils import ( DockerContainerRun, DockerImagePull, - DockerVolumeCreate, DockerNetworkCreate, + DockerVolumeCreate, ) from scone.head.kitchen import Kitchen from scone.head.recipe import Recipe, RecipeContext @@ -33,7 +33,7 @@ class DockerImage(Recipe): self.repository = check_type(args.get("repository"), str) self.tag = check_type(args.get("tag"), str) - + async def cook(self, kitchen: Kitchen) -> None: kitchen.get_dependency_tracker() await kitchen.ut1areq( @@ -43,12 +43,12 @@ class DockerImage(Recipe): class DockerVolume(Recipe): _NAME = "docker-volume" - + def __init__(self, recipe_context: RecipeContext, args: dict, head): super().__init__(recipe_context, args, head) self.name = check_type(args.get("name"), str) - + async def cook(self, kitchen: Kitchen) -> None: kitchen.get_dependency_tracker() await kitchen.ut1areq(DockerVolumeCreate(self.name), DockerVolumeCreate.Result) @@ -56,7 +56,7 @@ class DockerVolume(Recipe): class DockerNetwork(Recipe): _NAME = "docker-network" - + def __init__(self, recipe_context: RecipeContext, args: dict, head): super().__init__(recipe_context, args, head) @@ -68,7 +68,7 @@ class DockerNetwork(Recipe): self.attachable = check_type_opt(args.get("attachable"), bool) self.scope = check_type_opt(args.get("scope"), str) self.ingress = check_type_opt(args.get("ingress"), bool) - + async def cook(self, kitchen: Kitchen) -> None: kitchen.get_dependency_tracker() await kitchen.ut1areq( diff --git a/scone/default/steps/__init__.py b/scone/default/steps/__init__.py index 7cca6de..541a557 100644 --- a/scone/default/steps/__init__.py +++ b/scone/default/steps/__init__.py @@ -14,4 +14,3 @@ # # You should have received a copy of the GNU General Public License # along with Scone. If not, see . - diff --git a/scone/default/utensils/__init__.py b/scone/default/utensils/__init__.py index 7cca6de..541a557 100644 --- a/scone/default/utensils/__init__.py +++ b/scone/default/utensils/__init__.py @@ -14,4 +14,3 @@ # # You should have received a copy of the GNU General Public License # along with Scone. If not, see . - diff --git a/scone/head/__init__.py b/scone/head/__init__.py index 7cca6de..541a557 100644 --- a/scone/head/__init__.py +++ b/scone/head/__init__.py @@ -14,4 +14,3 @@ # # You should have received a copy of the GNU General Public License # along with Scone. If not, see . - diff --git a/scone/head/exceptions.py b/scone/head/exceptions.py index 4c2fcfa..979cae4 100644 --- a/scone/head/exceptions.py +++ b/scone/head/exceptions.py @@ -15,6 +15,7 @@ # You should have received a copy of the GNU General Public License # along with Scone. If not, see . + class CookingError(Exception): """ Error in cooking.