yaml safe load
parent
c937dae3b4
commit
843ade66ac
|
@ -0,0 +1,27 @@
|
|||
{
|
||||
// See https://go.microsoft.com/fwlink/?LinkId=733558
|
||||
// for the documentation about the tasks.json format
|
||||
"version": "2.0.0",
|
||||
"tasks": [
|
||||
{
|
||||
"label": "build",
|
||||
"type": "shell",
|
||||
"command": "docker-compose build",
|
||||
"problemMatcher": [],
|
||||
"group": {
|
||||
"kind": "build",
|
||||
"isDefault": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"label": "test",
|
||||
"type": "shell",
|
||||
"command": "docker-compose up",
|
||||
"problemMatcher": [],
|
||||
"group": {
|
||||
"kind": "test",
|
||||
"isDefault": true
|
||||
}
|
||||
},
|
||||
]
|
||||
}
|
|
@ -3,6 +3,7 @@ ENV DEBIAN_FRONTEND noninteractive
|
|||
|
||||
RUN apt-get update && apt-get install -y \
|
||||
python3-pip \
|
||||
python3-requests \
|
||||
python3-yaml \
|
||||
&& apt-get clean
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ def new(path: Path):
|
|||
|
||||
def load(path: Path) -> dict:
|
||||
with path.open("r") as file_open:
|
||||
config = yaml.load(file_open)
|
||||
config = yaml.safe_load(file_open)
|
||||
|
||||
return config
|
||||
|
||||
|
|
|
@ -5,4 +5,4 @@ services:
|
|||
image: banana
|
||||
build:
|
||||
context: .
|
||||
command: banana-script
|
||||
command: eso-banana-script
|
||||
|
|
Loading…
Reference in New Issue