From 13533074ea83db3c6a2280a2b3a5c6e0aca1e590 Mon Sep 17 00:00:00 2001 From: Willi Ballenthin Date: Wed, 2 Aug 2023 13:01:15 +0000 Subject: [PATCH] devcontainer: install pre-commit hooks --- .devcontainer/devcontainer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index d76fc7489..c8444ed39 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -41,7 +41,7 @@ // "forwardPorts": [], // Use 'postCreateCommand' to run commands after the container is created. - "postCreateCommand": "git submodule update --init && pip3 install --user -e .[dev]", + "postCreateCommand": "git submodule update --init && pip3 install --user -e .[dev] && pre-commit install", // Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. "remoteUser": "vscode",