Skip to content

Commit

Permalink
[Codespaces] Making sure installing an updated ansys-mapdl-core (#2659)
Browse files Browse the repository at this point in the history
* Making sure installing the updated repo

* downloading and installing hooks
  • Loading branch information
germa89 committed Jan 12, 2024
1 parent e7cb919 commit c5b4c55
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
7 changes: 5 additions & 2 deletions .devcontainer/codespaces-docs/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,14 @@ ln -s /home/mapdl/.venv /home/mapdl/pymapdl/.venv && echo "Linking venv original
source ./.venv/bin/activate

echo "Installing PyMAPDL package and dependencies for development"
# It should be fast because the image is build with the dependencies installed.
# let's first update everything
git fetch && git pull

# Installation should be fast because the image is built with the dependencies installed.
pip install -e '.[doc]'

echo "Setting pre-commit..."
pre-commit install
pre-commit install --install-hooks

echo "Installing Visual Studio Code extensions..."
code --install-extension ms-python.python
Expand Down
7 changes: 5 additions & 2 deletions .devcontainer/devcontainer-local/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,14 @@ ln -s /home/mapdl/.venv /home/mapdl/pymapdl/.venv_pymapdl && echo "Linking venv
source ./.venv_pymapdl/bin/activate

echo "Installing PyMAPDL package and dependencies for development"
# It should be fast because the image is build with the dependencies installed.
# let's first update everything
git fetch && git pull

# Installation should be fast because the image is built with the dependencies installed.
pip install -e '.[tests]'

echo "Setting pre-commit..."
pre-commit install
pre-commit install --install-hooks

echo "Installing Visual Studio Code extensions..."
code --install-extension ms-python.python
Expand Down
7 changes: 5 additions & 2 deletions .devcontainer/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,14 @@ ln -s /home/mapdl/.venv /home/mapdl/pymapdl/.venv && echo "Linking venv original
source ./.venv/bin/activate

echo "Installing PyMAPDL package and dependencies for development"
# It should be fast because the image is build with the dependencies installed.
# let's first update everything
git fetch && git pull

# Installation should be fast because the image is built with the dependencies installed.
pip install -e '.[tests]'

echo "Setting pre-commit..."
pre-commit install
pre-commit install --install-hooks

echo "Installing Visual Studio Code extensions..."
code --install-extension ms-python.python
Expand Down

0 comments on commit c5b4c55

Please sign in to comment.