Skip to content
Closed
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Automatically activate Python venv and sync dependencies on cd
# Requires: direnv (https://direnv.net/)
# Install: sudo apt install direnv && echo 'eval "$(direnv hook bash)"' >> ~/.bashrc

# Create venv if it doesn't exist
if [[ ! -d .venv ]]; then
echo "Creating .venv with uv..."
uv venv .venv
fi

# Activate the venv
source .venv/bin/activate

# Ensure dependencies are synced
uv sync --quiet
Copy link

Copilot AI Dec 12, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comment states "Ensure dependencies are synced" but uv sync --quiet could fail silently. Consider removing the --quiet flag or adding error handling to ensure failures are visible to the developer.

Suggested change
uv sync --quiet
uv sync

Copilot uses AI. Check for mistakes.

# Set PYO3 to use this venv's Python
Comment on lines +16 to +17
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 SUGGESTION: Improve error visibility

The --quiet flag on uv sync could hide important errors during development. Consider removing it or adding explicit error handling:

# Ensure dependencies are synced
uv sync || {
    echo "Error: Failed to sync dependencies"
    exit 1
}

export PYO3_PYTHON="${PWD}/.venv/bin/python"
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ flamegraph.svg
.env.local
.venv/

# AI Agent Frameworks (BMAD, Claude, etc)
.bmad/
.claude/

# Logs
logs/
*.log
Expand Down Expand Up @@ -77,4 +81,3 @@ docs/config.md
docs/install.md
docs/reference.md
docs/usage.md
.venv/
Loading
Loading