diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..394b744 --- /dev/null +++ b/.vscode/tasks.json @@ -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 + } + }, + ] +} diff --git a/Dockerfile b/Dockerfile index f0faa7b..a6e2384 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/banana/config.py b/banana/config.py index f906fa7..9d7ca04 100644 --- a/banana/config.py +++ b/banana/config.py @@ -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 diff --git a/docker-compose.yaml b/docker-compose.yaml index cb57444..d6d1f5c 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -5,4 +5,4 @@ services: image: banana build: context: . - command: banana-script + command: eso-banana-script