-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add dev container support for project #704
Changes from 20 commits
e1962d7
ced96b0
227fd8a
294cb97
72d5e33
76d0b23
23e6345
cc15f58
e841612
6176061
b739c69
c2f5e49
69c1d8c
6313603
ca98cf6
01fa642
e97bec7
3d64ead
45e9db3
f78c656
a4772da
a1ebfaf
62b427d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
"customizations": { | ||
"vscode": { | ||
"extensions": [ | ||
"ms-vscode-remote.vscode-remote-extensionpack", | ||
"charliermarsh.ruff", | ||
"ms-azuretools.vscode-docker", | ||
"github.vscode-pull-requrest-github", | ||
"ms-toolsai.jupyter", | ||
"ms-python.mypy-type-checker", | ||
"ms-vsliveshare.vsliveshare", | ||
"ms-python.python", | ||
"eamodio.gitlens", | ||
"github.vscode-pull-request-github" | ||
], | ||
"settings": { | ||
"git.autofetch": true, | ||
"python.testing.pytestEnabled": true, | ||
"terminal.integrated.defaultProfile.linux": "zsh" | ||
} | ||
} | ||
}, | ||
"features": { | ||
"ghcr.io/devcontainers-contrib/features/tmux-apt-get:1": {}, | ||
"ghcr.io/devcontainers-contrib/features/zsh-plugins:0": { | ||
"omzPlugins": "https://github.com/zsh-users/zsh-syntax-highlighting.git https://github.com/zsh-users/zsh-autosuggestions.git", | ||
"plugins": "zsh-syntax-highlighting zsh-autosuggestions" | ||
}, | ||
"ghcr.io/devcontainers/features/git:1": {}, | ||
"ghcr.io/devcontainers/features/github-cli:1": {}, | ||
"ghcr.io/schlich/devcontainer-features/powerlevel10k:1": {} | ||
}, | ||
"image": "mcr.microsoft.com/devcontainers/python:3.11", | ||
"name": "Python 3", | ||
"postCreateCommand": "chmod +x ./.devcontainer/post_create.sh && ./.devcontainer/post_create.sh" | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/sh | ||
|
||
set -e # Exit immediately if a command exits with a non-zero status. | ||
|
||
git config --global --add safe.directory /workspaces/dspy | ||
|
||
pip install poetry==1.7.1 | ||
poetry config installer.max-workers 4 | ||
|
||
poetry install --with dev | ||
|
||
sudo apt update | ||
sudo apt-get -y install python3-distutils | ||
|
||
poetry run pre-commit install --install-hooks | ||
|
||
personalization_script="./.devcontainer/.personalization.sh" | ||
|
||
# Developers can place a personalization script in the location specified above | ||
# to further customize their dev container | ||
if [ -f "$personalization_script" ]; then | ||
echo "File $personalization_script exists. Running the script..." | ||
chmod +x "$personalization_script" | ||
$personalization_script | ||
fi |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ on: | |
types: [opened, synchronize, reopened] | ||
|
||
env: | ||
POETRY_VERSION: "1.6.1" | ||
POETRY_VERSION: "1.7.1" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In the poetry lock file, it looks like it's getting compiled with |
||
|
||
jobs: | ||
fix: | ||
|
@@ -39,7 +39,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.9"] | ||
python-version: ["3.11"] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Load cached Poetry installation | ||
|
@@ -70,7 +70,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.9"] | ||
python-version: ["3.11"] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Load cached Poetry installation | ||
|
@@ -101,7 +101,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.9"] | ||
python-version: ["3.11"] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Load cached Poetry installation | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,3 +46,4 @@ finetuning_ckpts/ | |
assertion.log | ||
*.log | ||
*.db | ||
/.devcontainer/.personalization.sh |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This uses Python 3.11 - would the team like me to use 3.9 instead?