Skip to content

[BUG] just gh-issues fails locally — rich not in .venv dependencies #159

Closed

Description

@gerchowl

Description

just gh-issues fails on local development machines with ModuleNotFoundError: No module named 'rich'. The recipe invokes python3 scripts/gh_issues.py, which imports rich. Inside the devcontainer, rich is installed globally, so the recipe works. But locally, the project .venv (managed by uv) does not include rich — it is not listed in pyproject.toml dependencies or any dependency group.

Steps to Reproduce

  1. Clone the repo and set up the local .venv with uv sync
  2. Run just gh-issues
  3. Observe:
ModuleNotFoundError: No module named 'rich'

Expected Behavior

just gh-issues works both inside the devcontainer (global rich) and on local dev machines (.venv rich).

Actual Behavior

Fails locally with ModuleNotFoundError: No module named 'rich'.

Environment

  • OS: macOS (local development)
  • Python: 3.12.10 via .venv
  • Container Runtime: N/A (issue is outside container)

Possible Solution

Options (non-exhaustive, decide during implementation):

  1. Add rich to a dependency group in pyproject.toml (e.g. dev or a new tools group) so uv sync installs it into .venv. Simplest fix.
  2. Preflight check in justfile.gh — detect whether rich is importable and provide a helpful error message or fallback.
  3. Use uv run in the just recipe instead of bare python3 so it automatically resolves from the project's .venv.

Option 1 is the smallest change; option 3 may be more robust long-term.

Changelog Category

Fixed

Acceptance Criteria

  • just gh-issues succeeds on a local dev machine after uv sync
  • just gh-issues continues to work inside the devcontainer
  • rich dependency is declared in a single canonical location
  • TDD compliance (see .cursor/rules/tdd.mdc)

Related Issues

Activity

  1. added
    bug
    area:workflow
    effort:small
    semver:patch
    on Feb 23, 2026
  2. self-assigned this
    on Feb 23, 2026
  3. gerchowl commented on Feb 23, 2026

    @gerchowl
    ContributorAuthor

    Design

    Approach: Add rich to the existing dev dependency group in pyproject.toml.

    What changes

    • pyproject.toml — add "rich>=13.0.0" to [dependency-groups] dev

    What stays the same

    • The justfile recipe (python3 scripts/gh_issues.py) — no change
    • The devcontainer (global rich continues to work)
    • No new dependency groups

    Testing strategy

    • Config-only change (dependency declaration). No new logic to TDD.
    • Verifiable by running uv sync && just gh-issues locally.
    • TDD skipped with justification: no testable behavior.

    Acceptance criteria

    • just gh-issues succeeds locally after uv sync
    • Continues to work inside devcontainer
    • rich declared in single canonical location (pyproject.toml dev group)
    • TDD compliance noted (skip justified — config only)
  4. gerchowl commented on Feb 23, 2026

    @gerchowl
    ContributorAuthor

    Implementation Plan

    Issue: #159
    Branch: bugfix/159-gh-issues-missing-rich-dependency

    Tasks

    • Add rich dependency to dev group — pyproject.toml — verify: uv sync && just gh-issues succeeds locally
  5. gerchowl commented on Feb 23, 2026

    @gerchowl
    ContributorAuthor

    Autonomous Run Complete

  6. added a commit that references this issue on Mar 6, 2026
    79f6315
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:workflowbugeffort:smallsemver:patch

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions