From 81ce5110713c3cb04f435cf9903a0956a83d76f8 Mon Sep 17 00:00:00 2001 From: Paolo Tranquilli Date: Mon, 20 Jun 2022 14:59:36 +0000 Subject: [PATCH] Swift: add pre-commit to codespace --- .devcontainer/swift/user.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.devcontainer/swift/user.sh b/.devcontainer/swift/user.sh index ae2d526e1d6..04af39d401b 100755 --- a/.devcontainer/swift/user.sh +++ b/.devcontainer/swift/user.sh @@ -8,6 +8,10 @@ echo "--search-path /workspaces/codeql" > /home/vscode/.config/codeql/config cd /workspaces/codeql bazel run swift/create-extractor-pack +#install and set up pre-commit +python3 -m pip install pre-commit +pre-commit install + cat >> $HOME/.bashrc << EOF # have the codeql binary installed by vscode automatically in PATH