Thank you for your interest in contributing to Dopus! We welcome contributions from everyone and are grateful for even the smallest of improvements.
- Getting Started
- Setting Up the Development Environment
- Making Changes
- Submitting a Pull Request
- Code Style and Guidelines
- Running Tests
- Reporting Bugs
- Feature Requests
- Fork the repository on GitHub
- Clone your fork locally
git clone https://github.com/[YourUsername]/dopus.git
- Create a new branch for your feature or bug fix
git checkout -b feature/your-feature-name
- Ensure you have Python 3.7+ installed on your system.
- Install the required dependencies:
pip install -r requirements.txt
- Set up your OpenAI API key in a
.env
file:OPENAI_API_KEY=your_api_key_here
- Make your changes in your feature branch
- Add your changes
git add .
- Commit your changes with a descriptive commit message
git commit -m "Add a brief description of your changes"
- Push your changes to your fork on GitHub
git push origin feature/your-feature-name
- Go to the original Dopus repository on GitHub
- Click on "Pull Requests" and then the "New Pull Request" button
- Select your fork and the feature branch you created
- Add a title and description for your pull request
- Click "Create Pull Request"
- Follow PEP 8 guidelines for Python code
- Use meaningful variable and function names
- Write docstrings for classes and functions
- Keep functions small and focused on a single task
- Use type hints where appropriate
We use the DopusTest
framework for testing. To run tests:
- Navigate to the
dopus/test
directory - Run the test file:
python dopus_test.py
To add new tests, use the @test
or @test_multi
decorators as shown in the existing test files.