Add initial setup commands to post-create-command.sh
This commit is contained in:
parent
a9f925cf1f
commit
5c7f55cddf
2 changed files with 24 additions and 6 deletions
|
|
@ -0,0 +1,21 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Add user's fork as a remote
|
||||
GIT_USER=$(git config user.name)
|
||||
git remote add fork https://github.com/${GIT_USER}/flask
|
||||
|
||||
# Create and activate a virtualenv
|
||||
python3 -m venv .venv
|
||||
. .venv/bin/activate
|
||||
|
||||
# Upgrade pip and setuptools
|
||||
python -m pip install --upgrade pip setuptools
|
||||
|
||||
# Install the development dependencies, then install Flask in editable mode
|
||||
pip install -r requirements/dev.txt && pip install -e .
|
||||
|
||||
# Install pre-commit hooks
|
||||
pre-commit install
|
||||
|
||||
# Install coverage
|
||||
pip install coverage
|
||||
Loading…
Add table
Add a link
Reference in a new issue