quivr/docs/developers/contribution/guidelines.mdx

96 lines
3.7 KiB
Plaintext
Raw Normal View History

---
sidebar_position: 1
2023-11-05 02:24:43 +03:00
title: Guidelines
---
# Contributing to Quivr
Thanks for your interest in contributing to Quivr! Here you'll find guidelines for contributing and steps on how you can contribute.
## Community
We have a vibrant community over at [Discord](https://discord.gg/HUpRgp2HG8) where you can join discussions and ask questions related to Quivr.
## Roadmap and Issues
Before starting, please check our project [Roadmap](https://github.com/users/StanGirard/projects/5) to see if the issue or feature you're considering is already in the works.
2024-02-08 00:59:48 +03:00
You can report bugs or suggest features in the [Issues](https://github.com/quivrhq/quivr/issues). Please use the provided templates and labels for bug reports and feature requests.
## How to Contribute
Check the "Daily View" table in our project roadmap and feel free to pick any ticket in the backlog. Please let us know before you begin work on an issue so we can coordinate efforts and avoid duplicate work.
### Reporting Bugs
Bugs are tracked as GitHub issues and use the bug report template provided.
### Feature Requests
Enhancements are also tracked as GitHub issues and use the feature request template provided.
### Code Contributions
2024-02-08 00:59:48 +03:00
[![inlang status badge](https://badge.inlang.com/?url=github.com/quivrhq/quivr)](https://fink.inlang.com/https://badge.inlang.com/?url=github.com/quivrhq/quivr?ref=badge)
1. Fork the repository.
2. Make your changes in a new git branch.
3. Test your changes.
4. Commit your changes using descriptive commit messages.
5. Push your branch to GitHub.
6. In GitHub, submit a pull request to the original repository.
### Translations
2024-02-08 00:57:44 +03:00
Languages:
2024-02-08 00:59:48 +03:00
[Spanisch](https://inlang.com/editor/github.com/quivrhq/quivr?lang=en&lang=es)
[French](https://inlang.com/editor/github.com/quivrhq/quivr?lang=en&lang=fr)
[Portuguese](https://inlang.com/editor/github.com/quivrhq/quivr?lang=en&lang=pt-br)
[Russian](https://inlang.com/editor/github.com/quivrhq/quivr?lang=en&lang=ru)
[Chinese](https://inlang.com/editor/github.com/quivrhq/quivr?lang=en&lang=fr)
2024-02-08 00:59:48 +03:00
- Use the Fink editor as a translator https://inlang.com/editor/github.com/quivrhq/quivr
- Use ide extension as a developer https://inlang.com/m/r7kp499g/app-inlang-ideExtension
## Submission Guidelines
## Coding Rules
Please follow the coding guidelines specified below.
### Frontend Guidelines
#### Coding Conventions
- Respect the existing folder and file organizations.
- For components, use atomic design principles. Reuse existing components as much as possible before creating new ones.
- Stick to the ESLint configuration specified in the project. Avoid using eslint-disable comments for new code unless absolutely necessary.
#### Testing
- Write tests for your components using Vitest and React Testing Library. Try to cover as many edge cases as possible.
- Before submitting your contribution, run all tests to make sure they still pass.
### Backend Guidelines
#### Coding Conventions
- Structure your code using classes as much as possible.
- Follow standard Python coding conventions such as the ones defined in PEP 8.
- Comment wisely, providing useful context where necessary
- Always document your functions, classes and modules using docstrings.
- Type hint your functions and methods as much as possible in Python to make it more understandable and less prone to errors.
#### Testing
- Write unit tests for your functionality with pytest.
- Make sure all existing tests pass after you've made changes.
## Making a Pull Request
When making a pull request please respect the templates provided, reference the issue you're addressing, and include relevant visuals if possible.
## Contact
For any queries or discussions, please contact us via [Discord](https://discord.gg/HUpRgp2HG8).