Skip to content

Add CLAUDE.md with virtual environment guidance - #23

Closed
mschlicht-tt wants to merge 1 commit into
exdatic:mainfrom
mschlicht-tt:docs/claude-md-venv
Closed

mschlicht-tt wants to merge 1 commit into
exdatic:mainfrom
mschlicht-tt:docs/claude-md-venv

Conversation

@mschlicht-tt

Copy link
Copy Markdown

Summary

Adds a project CLAUDE.md so Claude Code works in the project's virtual environment by default:

  • Always use .venv/ and never install packages into the global Python
  • How to create the venv and install the project with dev dependencies (pip install -e ".[dev]")
  • Call the venv's executables directly (.venv/Scripts/python -m pytest, flake8, streamlit), because shell activation doesn't persist between Claude Code's commands

.flake8 already excludes .venv/venv, so this fits the existing setup.

Not included

.venv/ is still missing from .gitignore. That could be a follow-up.

🤖 Generated with Claude Code

Instructs Claude Code to always work in the project's .venv instead of
the global Python, how to create it, and to call the venv's executables
directly since shell activation doesn't persist between commands.

Co-Authored-By: Claude <noreply@anthropic.com>
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.

1 participant