Skip to content

Contributing

We welcome contributions to PMCGrab! This guide will help you get started.

Getting Started

  1. Fork the repository on GitHub
  2. Clone your fork locally:
    git clone https://github.com/rajdeepmondaldotcom/pmcgrab.git
    cd pmcgrab
    
  3. Set up development environment:
    uv sync --dev
    

Development Workflow

  1. Create a feature branch:
git checkout -b feature/your-feature-name
  1. Make your changes following our coding standards

  2. Run tests:

uv run pytest
  1. Run linting:
uv run ruff check .
uv run ruff format .
  1. Commit your changes:
git commit -m "feat: add new feature description"
  1. Push and create a pull request

Coding Standards

  • Follow PEP 8 style guidelines
  • Use type hints for all functions
  • Write comprehensive docstrings in Google style
  • Add tests for new functionality
  • Keep functions focused and well-named

Testing

  • Write unit tests for all new code
  • Ensure tests pass locally before submitting
  • Add integration tests for complex features
  • Maintain high test coverage

Documentation

  • Update documentation for new features
  • Include examples in docstrings
  • Update the changelog

Questions?

Open an issue on GitHub if you have questions or need help.