Update welcome text and add conditional for adding remote fork

This commit is contained in:
emisargent 2023-02-10 21:22:22 +00:00
parent 3baa270f7c
commit 6f14ad76ce
3 changed files with 9 additions and 14 deletions

12
.devcontainer/post-create-command.sh Normal file → Executable file
View file

@ -3,7 +3,9 @@ set -e
# Add user's fork as a remote
GIT_USER=$(git config user.name)
git remote add fork https://github.com/${GIT_USER}/flask
if [ ! git remote | grep -q "fork" ]; then
git remote add fork https://github.com/${GIT_USER}/flask
fi
# Create and activate a virtualenv
python3 -m venv .venv
@ -11,16 +13,10 @@ python3 -m venv .venv
# Upgrade pip and setuptools
python -m pip install --upgrade pip setuptools
echo "Upgraded setuptools"
# Install the development dependencies, then install Flask in editable mode
pip install -r requirements/dev.txt && pip install -e .
echo "Installed dependencies and Flask"
# Install pre-commit hooks
# Install pre-commit hooks and coverage
pre-commit install
echo "Installed pre-commit hooks"
# Install coverage
pip install coverage
echo "Installed coverage"