chore: apply pre-commit hooks
This commit is contained in:
parent
d5a9bf3f72
commit
2911dde588
1 changed files with 3 additions and 8 deletions
|
@ -5,6 +5,7 @@ from ruamel.yaml import YAML
|
||||||
from compose_viz.compose import Compose, Service
|
from compose_viz.compose import Compose, Service
|
||||||
from compose_viz.extends import Extends
|
from compose_viz.extends import Extends
|
||||||
|
|
||||||
|
|
||||||
class Parser:
|
class Parser:
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
pass
|
pass
|
||||||
|
@ -55,14 +56,8 @@ class Parser:
|
||||||
service_extends = Extends(service_name=service["extends"]["service"])
|
service_extends = Extends(service_name=service["extends"]["service"])
|
||||||
print("extends: {}".format(service_extends))
|
print("extends: {}".format(service_extends))
|
||||||
|
|
||||||
|
|
||||||
services.append(
|
services.append(
|
||||||
Service(
|
Service(name=service_name, image=service_image, networks=service_networks, extends=service_extends)
|
||||||
name=service_name,
|
|
||||||
image=service_image,
|
|
||||||
networks=service_networks,
|
|
||||||
extends=service_extends
|
|
||||||
)
|
|
||||||
)
|
)
|
||||||
|
|
||||||
# create Compose object
|
# create Compose object
|
||||||
|
|
Loading…
Reference in a new issue