Skip to content

Expose local files in Codespaces - #256

Merged
krowvin merged 2 commits into
mainfrom
fix/codespaces-local-path
Aug 11, 2026
Merged

Expose local files in Codespaces#256
krowvin merged 2 commits into
mainfrom
fix/codespaces-local-path

Conversation

@krowvin

@krowvin krowvin commented Aug 11, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • add the mounted dev-container workspace root to PYTHONPATH
  • make checked-out source and local test modules available throughout GitHub Codespaces
  • document that the files remain live from the workspace instead of being copied into the image

Why

The post-create Poetry install prepares the project and development dependencies, but processes started outside the repository working directory do not consistently discover repository-local source and test files. Exposing ${containerWorkspaceFolder} through PYTHONPATH makes the local checkout available across the Codespace.

Impact

Edits to source and test files are immediately reflected in Python processes anywhere in the dev container. Normal package installation and the existing virtual environment layout are unchanged.

Validation

  • clean dev-container creation, including the existing Poetry post-create install
  • import/path check from /tmp confirmed cwmscli and tests resolve under /workspaces/cwms-cli
  • poetry run pytest -q (373 passed)
  • poetry run pre-commit run --all-files

@krowvin
krowvin marked this pull request as ready for review August 11, 2026 20:37
@krowvin
krowvin requested a review from Enovotny as a code owner August 11, 2026 20:37
@krowvin
krowvin merged commit c549a94 into main Aug 11, 2026
11 checks passed
@krowvin
krowvin deleted the fix/codespaces-local-path branch August 11, 2026 22:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant