yaml safe load

master
JoYo 2021-12-07 17:24:52 -05:00
parent c937dae3b4
commit 843ade66ac
4 changed files with 30 additions and 2 deletions

27
.vscode/tasks.json vendored Normal file
View File

@ -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
}
},
]
}

View File

@ -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

View File

@ -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

View File

@ -5,4 +5,4 @@ services:
image: banana
build:
context: .
command: banana-script
command: eso-banana-script