Repository navigation
fix(deps): use pyproject.toml as SSoT for devcontainer tools - #180
Merged
Merged
Conversation
- Add devcontainer dependency group (rich, pre-commit, ruff, pip-licenses) - Container build installs from pyproject via uv export --only-group devcontainer - Add rich to workspace template dev group; change justfile.gh to uv run python - prepare-build.sh copies pyproject.toml and uv.lock to build context Refs: #159
gerchowl
force-pushed
the
bugfix/159-rich-missing-dependency
branch
from
February 24, 2026 18:22
0fd422e to
305dd75
Compare
Signed-off-by: gerchowl <[email protected]>
…member The uv.lock references vig-utils as an editable workspace member at packages/vig-utils. Moving the COPY before uv export ensures the lockfile can resolve all workspace members during the build. Refs: #159
- Add WORKDIR /build before COPY to satisfy hadolint DL3045 - Align test_ruff_installed expectation with pyproject (0.14.x) Refs: #159
Contributor
ProblemWhat should Steps
Errorjust gh-issues
uv run python /workspace/tmp/.devcontainer/scripts/gh_issues.py
Built tmp @ file:///workspace/tmp
Installed 1 package in 1ms
Traceback (most recent call last):
File "/workspace/tmp/.devcontainer/scripts/gh_issues.py", line 618, in <module>
sys.exit(main())
^^^^^^
File "/workspace/tmp/.devcontainer/scripts/gh_issues.py", line 534, in main
issues = _fetch_issues()
^^^^^^^^^^^^^^^
File "/workspace/tmp/.devcontainer/scripts/gh_issues.py", line 17, in _fetch_issues
result = subprocess.run(
^^^^^^^^^^^^^^^
File "/root/.local/share/uv/python/cpython-3.12-linux-x86_64-gnu/lib/python3.12/subprocess.py", line 571, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['gh', 'issue', 'list', '--state', 'open', '--limit', '200', '--json', 'number,title,state,assignees,labels,milestone']' returned non-zero exit status 1.
error: Recipe `gh-issues` failed on line 10 with exit code 1Proposed SolutionFail gracefully after checking upstream repo is not set / does not exist. RelatedMore generally for network access: #209 |
c-vigo
approved these changes
Feb 26, 2026
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
devcontainerdependency group topyproject.toml(rich, pre-commit, ruff, pip-licenses)uv export --only-group devcontainerrichto workspace template dev group; switchjustfile.ghtouv run python3prepare-build.shcopiespyproject.tomlanduv.lockto build contextTest plan
uv syncon a clean local checkout installsrichjust gh-issuessucceeds locally (outside devcontainer)just gh-issuescontinues to work inside the devcontainerCloses #159