Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"TZ": "Etc/UTC",
"POETRY_HOME": "/opt/poetry",
"VIRTUAL_ENV": "/home/vscode/.venv",
"POETRY_VIRTUALENVS_CREATE": "false"
"POETRY_VIRTUALENVS_CREATE": "false",
"PYTHONPATH": "${containerWorkspaceFolder}"
},
"postCreateCommand": "git config --global --add safe.directory \"$(pwd)\" && poetry install --with dev --no-interaction",
"customizations": {
Expand Down
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ devcontainer exec --workspace-folder . poetry run pytest -q

The container installs project dependencies with Poetry and uses
`/home/vscode/.venv`, so it does not reuse a host operating system's `.venv`.
Poetry itself is kept in a separate `/opt/poetry` environment. Use the container
for changes involving time zones, paths, native libraries, or other
operating-system-dependent behavior. Standard Python 3.9 and Python 3.12
installations remain covered by the existing CI matrix.
Poetry itself is kept in a separate `/opt/poetry` environment. The workspace
root is also added to `PYTHONPATH`, so the checked-out source and local test
modules are available throughout a Codespace without copying them into the
image. Use the container for changes involving time zones, paths, native
libraries, or other operating-system-dependent behavior. Standard Python 3.9
and Python 3.12 installations remain covered by the existing CI matrix.