1.4 KiB
1.4 KiB
Developer Instructions - VoIdea
Date: 2026-05-10
Prerequisites
- Python 3.12+
- PostgreSQL (local)
- Redis (optional for local dev)
Setup
`ash
1. Clone repository
git clone cd voidea
2. Create venv
python -m venv venv source venv/Scripts/activate # Windows
3. Install dependencies
pip install -r requirements.txt
4. Configure environment
cp .env.example .env
Edit .env with your values
5. Database setup
alembic upgrade head
6. Run application
uvicorn app.main:app --reload --port 8020 `
Key Commands
`ash
Lint
ruff check .
Format
ruff format .
Type check
mypy .
Tests
pytest
With coverage
pytest --cov=app tests/
Run specific test
pytest tests/unit/test_core.py -v `
Project Structure
- pp/ - Application code
- docs/ - Documentation
- ests/ - Tests
Naming Conventions
- Variables/Functions: snake_case
- Classes: PascalCase
- Constants: UPPER_SNAKE_CASE
- Files: snake_case.py
Adding New Feature
- Create feature branch: git checkout -b feature/description
- Implement code
- Write tests
- Update documentation
- Create PR
- After approval: merge to develop, then main
Rules
- Always read 00-rules.md first
- Follow code style (ruff, mypy)
- Write docstrings
- Update docs on changes
- Tests required
- No secrets in code
Updated: 2026-05-10