Skip to content

Latest commit

 

History

History
59 lines (39 loc) · 1.3 KB

CONTRIBUTING.md

File metadata and controls

59 lines (39 loc) · 1.3 KB

Contributing to PaperQA

Thank you for your interest in contributing to PaperQA! Here are some guidelines to help you get started.

Setting up the development environment

We use uv for our local development.

  1. Install uv by following the instructions on the uv website.

  2. Run the following command to install all dependencies and set up the development environment:

    uv sync

Installing the package for development

If you prefer to use pip for installing the package in development mode, you can do so by running:

pip install -e .

Running tests and other tooling

Use the following commands:

  • Run tests (requires an OpenAI key in your environment)

    pytest
    # or for multiprocessing based parallelism
    pytest -n auto
  • Run pre-commit for formatting and type checking

    pre-commit run --all-files
  • Run mypy, refurb, or pylint directly:

    mypy paperqa
    # or
    refurb paperqa
    # or
    pylint paperqa

See our GitHub Actions tests.yml for further reference.

Additional resources

For more information on contributing, please refer to the CONTRIBUTING.md file in the repository.

Happy coding!