Repository navigation
Conversation
Add .devcontainer/devcontainer.json, based on the Python 3.13 bookworm image so it matches the CI interpreter. - postCreateCommand installs the hash-pinned tools from requirements-dev.txt and the SDK's metadata into the user's site-packages, so there is no .venv. Imports of `proofline` still resolve to the workspace sources. scripts/check.py still builds its own throwaway environments for the full gate. - Adds the VS Code extensions for Python, mypy, ruff, Jinja templates, TOML, YAML and GitHub Actions. - mypy is the only type checker. Pylance type checking is turned off so the editor doesn't show a second, conflicting set of errors. - Ruff formats on save, except for *.py.jinja generator templates, which must stay byte-exact. - Hides caches, .tools, .venv and openapi.public.json from the explorer, file watcher and search.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
.devcontainer/devcontainer.jsonso contributors can open the repo in a ready-to-use container (VS Code Dev Containers or Codespaces).mcr.microsoft.com/devcontainers/python:3.13-bookworm, which matches the CI interpreter (3.13.x).postCreateCommandinstalls the hash-pinned tools fromrequirements-dev.txt(--require-hashes --only-binary=:all:) and the SDK's metadata (--no-deps) into~/.local. The container is the isolation boundary, so there is no.venv.prooflineimports still resolve to the workspace sources.requirements-dev.txtand the settings inpyproject.toml, is the only type checker. Pylance handles navigation and completion only.*.py.jinjagenerator templates are excluded so they stay byte-exact..tools,.venvandopenapi.public.jsonare hidden from the explorer, file watcher and search.scripts/check.pyis unchanged and still builds its own throwaway environments for the full gate.Test plan
postCreateCommandsucceedspython -c "import proofline"resolves to the workspace sourcespytest testspasses inside the container.py.jinjafiles untouchedpython scripts/check.pypasses inside the container🤖 Generated with Claude Code