Thank you for your interest in contributing to OpenAI Agents Travel Graph! This document provides guidelines and instructions for contributing to this project.
This project adheres to a Code of Conduct that all contributors are expected to follow. Please read CODE_OF_CONDUCT.md before contributing.
To get started with development:
-
Fork the repository
-
Clone your fork:
git clone https://github.com/YOUR_USERNAME/openai-agents-travel-graph.git cd openai-agents-travel-graph -
Set up the development environment:
python -m venv venv source venv/bin/activate # On Windows, use: venv\Scripts\activate # Install uv package manager curl -sSf https://astral.sh/uv/install.sh | bash # Install dependencies uv pip install -r requirements.txt uv pip install -r requirements-dev.txt
-
Create a branch for your work:
git checkout -b feature/your-feature-name
Our development workflow follows these steps:
- Pick an issue - Select an open issue to work on or create a new one
- Discuss - For major changes, please open an issue first to discuss what you would like to change
- Branch - Create a feature branch for your work
- Code - Make your changes, following our coding standards
- Test - Add tests for your changes and ensure all tests pass
- Document - Update documentation as needed
- PR - Submit a pull request
We follow these principles in our codebase:
- DRY (Don't Repeat Yourself) - Avoid code duplication
- KISS (Keep It Simple, Stupid) - Prefer simple solutions over complex ones
- YAGNI (You Aren't Gonna Need It) - Don't implement features until they're needed
- SOLID - Follow SOLID principles for object-oriented design
- File Size - Keep file sizes reasonable (<300 lines) for better maintainability
- Use uv as the package manager and for running Python commands
- Follow PEP 8 for Python code style
- Use type hints for all function parameters and return values
- Use Google-style docstrings
- Implement proper error handling with try/except blocks
- Use
uv runto execute Python scripts and tests (e.g.,uv run pytest,uv run python script.py)
- Keep README.md and other documentation up-to-date
- Document all public functions and classes
- Include examples in docstrings
- Add inline comments for complex logic
- Ensure your code follows our coding standards
- Update documentation as needed
- Add or update tests as appropriate
- Ensure all tests are passing (
uv run pytest) - Fill out the pull request template completely
- Request review from maintainers
- Address any feedback from code reviews
PRs will be merged once they:
- Pass all automated checks
- Receive approval from at least one maintainer
- Meet our code quality standards
When reporting bugs, please include:
- A clear, descriptive title
- Steps to reproduce the bug
- Expected behavior
- Actual behavior
- Screenshots (if applicable)
- Environment details (OS, Python version, etc.)
Use the bug report template when creating new issues.
Feature requests are welcome! When submitting a feature request:
- Use a clear, descriptive title
- Provide a detailed description of the proposed feature
- Explain the benefit to users
- Suggest an implementation approach if possible
Use the feature request template when creating new issues.
Join our community to discuss the project:
By contributing to this project, you agree that your contributions will be licensed under the project's MIT License.
Thank you for contributing to OpenAI Agents Travel Graph! 🙏