diff --git a/tools/docker/scripts/install_python.sh b/tools/docker/scripts/install_python.sh index 39507b9cbf..355467aaa2 100755 --- a/tools/docker/scripts/install_python.sh +++ b/tools/docker/scripts/install_python.sh @@ -23,3 +23,13 @@ rm -rf /var/lib/apt/lists/* # install python packages pip install --quiet numpy matplotlib requests pip3 install --quiet numpy matplotlib requests pre-commit + +cd /workspace/cp2k +echo -n "Warming cache by trying to run pre-commit hooks... " +if pre-commit run --all-files --hook-stage manual check-ast &> /dev/null ; then + echo "done." +else + echo "failed." +fi + +#EOF