mirror of
https://github.com/cp2k/cp2k.git
synced 2026-07-27 21:55:16 -04:00
docker: leverage Git to run formatting checks only on changed files
This commit is contained in:
parent
7c296290a2
commit
b7e6611d7a
6 changed files with 52 additions and 25 deletions
|
|
@ -24,12 +24,6 @@ rm -rf /var/lib/apt/lists/*
|
|||
pip install --quiet numpy matplotlib requests
|
||||
pip3 install --quiet numpy matplotlib requests pre-commit
|
||||
|
||||
# register the pre-commit hooks
|
||||
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
|
||||
pre-commit install --install-hooks
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue