Skip to content

Commit

Permalink
test pre-commit
Browse files Browse the repository at this point in the history
Signed-off-by: Jacob Woffenden <jacob.woffenden@digital.justice.gov.uk>
  • Loading branch information
Jacob Woffenden committed Nov 8, 2023
1 parent 1699327 commit c30d0f9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
5 changes: 1 addition & 4 deletions scripts/devcontainer/post-create.sh
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -16,4 +13,4 @@ pip install --upgrade pip
pip install -r requirements.dev.txt

# Install precommit hooks
# pre-commit install
pre-commit install

0 comments on commit c30d0f9

Please sign in to comment.