Skip to content

fix(deps): use pyproject.toml as SSoT for devcontainer tools - #180

Merged
c-vigo merged 7 commits into
devfrom
bugfix/159-rich-missing-dependency
Mar 6, 2026
Merged

c-vigo merged 7 commits into
devfrom
bugfix/159-rich-missing-dependency

Conversation

@gerchowl

@gerchowl gerchowl commented Feb 24, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Add devcontainer dependency group to pyproject.toml (rich, pre-commit, ruff, pip-licenses)
  • Container build installs from pyproject via uv export --only-group devcontainer
  • Add rich to workspace template dev group; switch justfile.gh to uv run python3
  • prepare-build.sh copies pyproject.toml and uv.lock to build context

Test plan

  • uv sync on a clean local checkout installs rich
  • just gh-issues succeeds locally (outside devcontainer)
  • just gh-issues continues to work inside the devcontainer
  • Container build succeeds with devcontainer dependency group

Closes #159

- 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
gerchowl force-pushed the bugfix/159-rich-missing-dependency branch from 0fd422e to 305dd75 Compare February 24, 2026 18:22
@gerchowl
gerchowl requested a review from c-vigo as a code owner February 24, 2026 18:22
@gerchowl gerchowl changed the title fix(gh-issues): add rich to dev dependency group and use uv run fix(deps): use pyproject.toml as SSoT for devcontainer tools Feb 24, 2026
…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
Omit scripts/gh_issues.py, sync_manifest.py, transforms.py from coverage
run; they have subprocess/API calls and are not yet unit-tested (see #99).
Regenerate docs from templates (generate-docs hook).

Refs: #159
- Add WORKDIR /build before COPY to satisfy hadolint DL3045
- Align test_ruff_installed expectation with pyproject (0.14.x)

Refs: #159
@c-vigo

c-vigo commented Feb 26, 2026

Copy link
Copy Markdown
Contributor

Problem

What should gh-issues do if there is no upstream repo set?

Steps

  1. Checkout this branch and build dev version with just build no_cache
  2. Create fresh project in an empty directory with ~/Documents/vigOS/devcontainer/install.sh ./ --version dev --skip-pull
  3. Open project as a devcontainer
  4. Run just gh-issues

Error

just 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 1

Proposed Solution

Fail gracefully after checking upstream repo is not set / does not exist.

Related

More generally for network access: #209

@c-vigo
c-vigo enabled auto-merge March 6, 2026 11:43
@c-vigo
c-vigo merged commit 79f6315 into dev Mar 6, 2026
10 checks passed
@c-vigo
c-vigo deleted the bugfix/159-rich-missing-dependency branch March 6, 2026 11:49
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.

2 participants