Skip to content

Latest commit

 

History

History
51 lines (30 loc) · 2.02 KB

CONTRIBUTING.md

File metadata and controls

51 lines (30 loc) · 2.02 KB

Contributing

Contributor License Agreement

We are grateful to the contributors who help evolve LangServe and dedicate their time to the project. As the primary sponsor of LangServe, LangChain, Inc. aims to build products in the open that benefit thousands of developers while allowing us to build a sustainable business. For all code contributions to LangServe, we ask that contributors complete and sign a Contributor License Agreement (“CLA”). The agreement between contributors and the project is explicit, so LangServe users can be confident in the legal status of the source code and their right to use it.The CLA does not change the terms of the underlying license, LangServe License, used by our software.

Before you can contribute to LangServe, a bot will comment on the PR asking you to agree to the CLA if you haven't already. Agreeing to the CLA is required before code can be merged and only needs to happen on the first contribution to the project. All subsequent contributions will fall under the same CLA.

🗺️ Guidelines

Dependency Management: Poetry and other env/dependency managers

This project uses Poetry v1.6.1+ as a dependency manager.

Local Development Dependencies

Install langserve development requirements (for running langchain, running examples, linting, formatting, tests, and coverage):

poetry install --with test,dev

Then verify that tests pass:

make test

Formatting and Linting

Run these locally before submitting a PR; the CI system will check also.

Code Formatting

Formatting for this project is done via a combination of Black and ruff.

To run formatting for this project:

make format

Linting

Linting for this project is done via a combination of Black, ruff, and mypy.

To run linting for this project:

make lint