From c30d0f928bb8b1b6e6d7683f9036b094490594f9 Mon Sep 17 00:00:00 2001 From: Jacob Woffenden Date: Wed, 8 Nov 2023 12:27:20 +0000 Subject: [PATCH] test pre-commit Signed-off-by: Jacob Woffenden --- .devcontainer/devcontainer.json | 2 +- scripts/devcontainer/post-create.sh | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 9df9c0ff..9b9bcfdc 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -11,7 +11,7 @@ "ghcr.io/devcontainers/features/docker-in-docker:2": {}, "./features/src/postgresql": {} }, - "postCreateCommand": "bash scripts/devcontainer/post-create.sh", + "postCreateCommand": "git config --global --add safe.directory ${containerWorkspaceFolder} && bash scripts/devcontainer/post-create.sh", "runArgs": ["--name=data-platform-control-panel-devcontainer"], "customizations": { "vscode": { diff --git a/scripts/devcontainer/post-create.sh b/scripts/devcontainer/post-create.sh index c16dcdd6..9b48ad36 100644 --- a/scripts/devcontainer/post-create.sh +++ b/scripts/devcontainer/post-create.sh @@ -1,8 +1,5 @@ #!/usr/bin/env bash -# Fix directory -# git config --global --add safe.directory /workspaces/data-platform-control-panel - # Upgrade NPM npm install --global npm@latest @@ -16,4 +13,4 @@ pip install --upgrade pip pip install -r requirements.dev.txt # Install precommit hooks -# pre-commit install +pre-commit install