mirror of
https://github.com/omnara-ai/omnara.git
synced 2025-08-12 20:39:09 +03:00
1.2 KiB
1.2 KiB
Contributing to Omnara
Thanks for your interest in contributing!
Quick Start
- Fork and clone the repository
- Set up your development environment:
python -m venv .venv source .venv/bin/activate # Windows: .venv\Scripts\activate make dev-install make pre-commit-install - Set up PostgreSQL and configure
DATABASE_URLin.env - Generate JWT keys:
python scripts/generate_jwt_keys.py - Run migrations:
cd shared && alembic upgrade head
Development Process
- Create a branch:
feature/,bugfix/, ordocs/ - Make your changes
- Run checks:
make lintandmake test - Submit a pull request
Code Style
- Python 3.11+
- Type hints required
- Follow existing patterns
- Tests for new features
Database Changes
When modifying models:
- Edit models in
shared/database/models.py - Generate migration:
cd shared && alembic revision --autogenerate -m "description" - Test migration before committing
Commit Messages
Use conventional commits:
feat:New featurefix:Bug fixdocs:Documentationrefactor:Code refactoringtest:Tests
Example: feat: add API key rotation endpoint
Questions?
Open an issue or discussion on GitHub!