mirror of
https://github.com/run-llama/llama_deploy.git
synced 2026-06-30 21:07:54 -04:00
add basic CONTRIBUTING.md (#492)
This commit is contained in:
committed by
GitHub
parent
c4f34742d8
commit
d7c02ebcd1
@@ -23,7 +23,6 @@ repos:
|
||||
hooks:
|
||||
- id: ruff
|
||||
args: [--fix, --exit-non-zero-on-fix]
|
||||
exclude: ".*poetry.lock"
|
||||
- id: ruff-format
|
||||
|
||||
- repo: https://github.com/pre-commit/mirrors-mypy
|
||||
@@ -72,4 +71,3 @@ repos:
|
||||
rev: v0.23.1
|
||||
hooks:
|
||||
- id: toml-sort-fix
|
||||
exclude: ".*poetry.lock"
|
||||
|
||||
@@ -0,0 +1,79 @@
|
||||
# Contributing to llama_deploy
|
||||
|
||||
Thank you for your interest in contributing to llama_deploy! This document provides guidelines and
|
||||
instructions for contributing to the project.
|
||||
|
||||
## Getting Started
|
||||
|
||||
1. Fork the repository
|
||||
2. Clone your fork: `git clone https://github.com/yourusername/llama_deploy.git`
|
||||
3. Set up your development environment (see below)
|
||||
4. Create a feature branch: `git checkout -b feature/my-feature`
|
||||
|
||||
## Development Environment
|
||||
|
||||
### Installing uv
|
||||
|
||||
We use `uv` for package management. If you don't have it installed:
|
||||
|
||||
```
|
||||
curl -LsSf https://astral.sh/uv/install.sh | sh
|
||||
```
|
||||
|
||||
Or on macOS with Homebrew:
|
||||
```
|
||||
brew install uv
|
||||
```
|
||||
|
||||
For more installation options, visit the [uv documentation](https://docs.astral.sh/uv/getting-started/installation/).
|
||||
|
||||
### Setting up the project
|
||||
|
||||
Run the unit tests to verify your setup:
|
||||
```
|
||||
uv run -- pytest tests
|
||||
```
|
||||
|
||||
You can also run the end-to-end tests:
|
||||
```
|
||||
uv run -- pytest e2e_tests
|
||||
```
|
||||
|
||||
## Making Changes
|
||||
|
||||
1. Make your changes
|
||||
2. Add or update tests as needed
|
||||
3. Run tests to make sure everything passes
|
||||
4. Update documentation if necessary
|
||||
5. Commit your changes with a descriptive message
|
||||
|
||||
## Pull Request Process
|
||||
|
||||
1. Push changes to your fork
|
||||
2. Submit a pull request to the main repository
|
||||
3. Add a clear description of the changes
|
||||
4. Address any review comments
|
||||
|
||||
## Code Style
|
||||
|
||||
Follow the existing code style in the project. We use:
|
||||
|
||||
- Black for code formatting
|
||||
- Ruff for linting
|
||||
|
||||
## Testing
|
||||
|
||||
- Write tests for any new functionality
|
||||
- Ensure all tests pass before submitting a PR
|
||||
- Run tests with: `uv run -- pytest`
|
||||
|
||||
## Documentation
|
||||
|
||||
- Update documentation for any changed functionality
|
||||
- Document new features thoroughly
|
||||
|
||||
## Questions?
|
||||
|
||||
If you have questions about contributing, please open an issue in the repository.
|
||||
|
||||
Thank you for contributing to llama_deploy!
|
||||
@@ -1,3 +1,4 @@
|
||||
[](https://github.com/astral-sh/uv)
|
||||
[](https://pypi.org/project/llama-deploy)
|
||||
[](https://pypi.org/project/llama-deploy)
|
||||
[](https://docs.llamaindex.ai/en/latest/module_guides/llama_deploy/)
|
||||
|
||||
+4
-4
@@ -9,21 +9,21 @@ When new folders are added, they will be executed automatically in the CI/CD pip
|
||||
To run all the tests:
|
||||
|
||||
```sh
|
||||
$ poetry run pytest -m"e2e"
|
||||
$ uv run -- pytest -m"e2e"
|
||||
```
|
||||
or
|
||||
```sh
|
||||
$ poetry run pytest ./e2e_tests
|
||||
$ uv run -- pytest ./e2e_tests
|
||||
```
|
||||
|
||||
To run a specific scenario:
|
||||
|
||||
```sh
|
||||
$ poetry run pytest e2e_tests/basic_streaming
|
||||
$ uv run -- pytest e2e_tests/basic_streaming
|
||||
```
|
||||
|
||||
If you want to see the output of the different services running, pass the `-s` flag to pytest:
|
||||
|
||||
```sh
|
||||
$ poetry run pytest e2e_tests/basic_streaming -s
|
||||
$ uv run -- pytest e2e_tests/basic_streaming -s
|
||||
```
|
||||
|
||||
+1
-1
@@ -72,7 +72,7 @@ llamactl = "llama_deploy.cli.__main__:main"
|
||||
|
||||
[tool.codespell]
|
||||
ignore-words-list = "LITS"
|
||||
skip = "poetry.lock,./examples,*/algolia.js,docs/poetry.lock"
|
||||
skip = "./examples,*/algolia.js,docs/poetry.lock"
|
||||
|
||||
[tool.coverage.run]
|
||||
omit = [
|
||||
|
||||
Reference in New Issue
Block a user