Add local venv fallback for running tests in CLAUDE.md [ci skip]
This commit is contained in:
parent
fb98e5c12e
commit
556b5b0f42
1 changed files with 1 additions and 1 deletions
|
|
@ -236,6 +236,6 @@ The project uses strict mypy configuration with `disallow_untyped_defs=true`. Ru
|
|||
- Do not include unrelated files
|
||||
- Use descriptive commit messages
|
||||
- Group related files together (e.g., tests with the code they test)
|
||||
- **Always run tests before committing**: `docker compose exec -T app pytest tests/ -v --tb=short`. If Docker is not running or not available, warn the user that tests could not be verified before committing.
|
||||
- **Always run tests before committing**: `docker compose exec -T app pytest tests/ -v --tb=short`. If Docker is not available, use the local venv fallback: `/tmp/rec-test-venv/bin/pytest tests/ -v --tb=short` (set up with `python3 -m venv /tmp/rec-test-venv && /tmp/rec-test-venv/bin/pip install pytest pytest-asyncio pytest-cov httpx fakeredis aioresponses fastapi uvicorn sqlmodel sqlalchemy alembic pyjwt cryptography celery redis click aiohttp aiohttp-socks pillow numpy pytesseract opentelemetry-api opentelemetry-sdk opentelemetry-exporter-prometheus opentelemetry-instrumentation-fastapi opentelemetry-instrumentation-sqlalchemy python-dotenv webauthn apprise tenacity prometheus-client email-validator opencv-python-headless tqdm pandas cachetools watchdog`). If neither works, warn the user.
|
||||
- **After each meaningful change, ask the user if they want to commit and push the changes**
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue