updated requested changes in PR #6636

This commit is contained in:
மனோஜ்குமார் பழனிச்சாமி
2022-04-05 10:21:07 +05:30
parent e2a42d3027
commit 57af08fde7
3 changed files with 32 additions and 4 deletions

View File

@@ -51,6 +51,7 @@ function updateenv() {
echo "pip install in-progress. Please wait..."
${PYTHON} -m pip install --upgrade pip
read -p "Do you want to install dependencies for dev [y/N]? "
dev=$REPLY
if [[ $REPLY =~ ^[Yy]$ ]]
then
REQUIREMENTS=requirements-dev.txt
@@ -88,6 +89,12 @@ function updateenv() {
fi
echo "pip install completed"
echo
if [[ $dev =~ ^[Yy]$ ]] then
${PYTHON} -m pre-commit install
if [ $? -ne 0 ]; then
echo "Failed installing pre-commit"
exit 1
fi
}
# Install tab lib