Skip to content

Commit 67b0d1b

Browse files
committed
feat: Add devcontainer configuration
This will allow folks to easily use devcontainers to develop aider.
1 parent 938b5df commit 67b0d1b

File tree

3 files changed

+39
-1
lines changed

3 files changed

+39
-1
lines changed

.devcontainer/devcontainer.json

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"name": "Aider Development",
3+
"image": "aider:latest",
4+
"workspaceMount": "source=${localWorkspaceFolder},target=/app,type=bind",
5+
"workspaceFolder": "/app",
6+
"runArgs": [
7+
"--env-file",
8+
".env"
9+
],
10+
"customizations": {
11+
"vscode": {
12+
"extensions": [
13+
"ms-python.python",
14+
"ms-python.vscode-pylance",
15+
"ms-python.flake8"
16+
],
17+
"settings": {
18+
"python.defaultInterpreterPath": "/venv/bin/python",
19+
"python.linting.enabled": true,
20+
"python.linting.flake8Enabled": true,
21+
"python.formatting.provider": "none",
22+
"editor.formatOnSave": true,
23+
"editor.rulers": [
24+
100
25+
]
26+
}
27+
}
28+
},
29+
"postCreateCommand": "pip install -e . && pip install -r requirements/requirements-dev.txt && pre-commit install",
30+
"postAttachCommand": "aider",
31+
"remoteUser": "appuser"
32+
}

.env.example

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Copy this file to .env and adjust values as needed
2+
# The values will be loaded into the devcontainer
3+
# and can be used to configure Aider.
4+
OPENAI_API_KEY=your_api_key_here
5+
ANTHROPIC_API_KEY=your_api_key_here

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,5 @@ aider/_version.py
1515
.venv/
1616
.#*
1717
.gitattributes
18-
tmp.benchmarks/
18+
tmp.benchmarks/
19+
.env

0 commit comments

Comments
 (0)