Skip to content

Latest commit

 

History

History
82 lines (65 loc) · 2.25 KB

CONTRIBUTING.md

File metadata and controls

82 lines (65 loc) · 2.25 KB

Contributing to Dopus

Thank you for your interest in contributing to Dopus! We welcome contributions from everyone and are grateful for even the smallest of improvements.

Table of Contents

  1. Getting Started
  2. Setting Up the Development Environment
  3. Making Changes
  4. Submitting a Pull Request
  5. Code Style and Guidelines
  6. Running Tests
  7. Reporting Bugs
  8. Feature Requests

Getting Started

  1. Fork the repository on GitHub
  2. Clone your fork locally
    git clone https://github.com/[YourUsername]/dopus.git
    
  3. Create a new branch for your feature or bug fix
    git checkout -b feature/your-feature-name
    

Setting Up the Development Environment

  1. Ensure you have Python 3.7+ installed on your system.
  2. Install the required dependencies:
    pip install -r requirements.txt
    
  3. Set up your OpenAI API key in a .env file:
    OPENAI_API_KEY=your_api_key_here
    

Making Changes

  1. Make your changes in your feature branch
  2. Add your changes
    git add .
    
  3. Commit your changes with a descriptive commit message
    git commit -m "Add a brief description of your changes"
    
  4. Push your changes to your fork on GitHub
    git push origin feature/your-feature-name
    

Submitting a Pull Request

  1. Go to the original Dopus repository on GitHub
  2. Click on "Pull Requests" and then the "New Pull Request" button
  3. Select your fork and the feature branch you created
  4. Add a title and description for your pull request
  5. Click "Create Pull Request"

Code Style and Guidelines

  • 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

Running Tests

We use the DopusTest framework for testing. To run tests:

  1. Navigate to the dopus/test directory
  2. 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.