mirror of
https://github.com/cp2k/cp2k.git
synced 2026-07-27 21:55:16 -04:00
Docker: Initialize pre-commit environments earlier
This commit is contained in:
parent
d7cf14fe28
commit
4c958eb136
1 changed files with 10 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue