Setup Guide¶
This guide walks you through setting up your development environment for CobraBox.
Prerequisites¶
- Python 3.11+ - Check with
python --version - git - Version control
- git-lfs - Large file storage (for dummy datasets)
- uv - Package manager (recommended)
Step 1: Install git-lfs¶
macOS¶
Linux¶
Windows¶
Step 2: Clone the Repository¶
Step 3: Set Up Python Environment¶
Step 4: Install Pre-commit Hooks¶
Pre-commit hooks will automatically run ruff linting on every commit.
Step 5: Verify Setup¶
Run the test suite:
Try the demo:
Development Workflow¶
- Create a branch for your feature
- Write tests for new functionality
- Run linting -
uvx ruff check - Run tests -
uv run pytest - Commit - pre-commit hooks run automatically
- Push and create a pull request
Common Issues¶
git-lfs not working¶
If you see placeholder files:
Pre-commit fails¶
Fix the reported issues and stage the changes again:
Tests fail¶
Check the error output and fix the failing tests. Run with more detail: