From a1538552dcc3f013345d1729256759ae6968af34 Mon Sep 17 00:00:00 2001 From: Koaha Date: Wed, 27 Nov 2024 16:30:29 +0700 Subject: [PATCH] add contributing.md --- CONTRIBUTING.md | 123 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 123 insertions(+) create mode 100644 CONTRIBUTING.md diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000..eaacd4e --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,123 @@ + +# Contributing to Vital_SQI + +πŸŽ‰ Thank you for your interest in contributing to **Vital_SQI**! πŸŽ‰ +We’re thrilled to have you on board. Below is a step-by-step guide to help you navigate the contribution process. + +--- + +## How Can You Contribute? πŸ€” + +There are several ways you can contribute to the project: +- **Report Bugs** πŸ› +- **Request Features** ✨ +- **Submit Pull Requests** πŸ”§ +- **Improve Documentation** πŸ“– + +--- + +## Reporting Issues 🐞 + +If you find a bug or want to suggest an enhancement, let us know: +1. Go to the [Issues](https://github.com/Oucru-Innovations/vital-sqi/issues) page. +2. Click on `New Issue`. +3. Choose the appropriate template: + - **Bug Report** for bugs. + - **Feature Request** for enhancements. +4. Fill out the form and submit! + +--- + +## Contributing Code πŸ”¨ + +Ready to dive into the code? Awesome! Here’s how you can get started: + +### 1. Fork the Repository 🍴 +Click the **Fork** button at the top right of the [Vital_SQI GitHub page](https://github.com/Oucru-Innovations/vital-sqi). + +### 2. Clone Your Fork πŸ–₯️ +```bash +git clone https://github.com//vital-sqi.git +cd vital-sqi +``` + +### 3. Create a New Branch 🌿 +Always create a new branch for your work: +```bash +git checkout -b feature/my-awesome-feature +``` + +### 4. Install Dependencies πŸ“¦ +We use `pip` for dependencies: +```bash +pip install -r requirements.txt +``` + +### 5. Make Your Changes ✏️ +- Write clean, modular, and well-documented code. +- Ensure your changes align with our [Code of Conduct](#code-of-conduct). + +### 6. Run Tests βœ… +Before pushing your code, ensure all tests pass: +```bash +pytest tests/ +``` + +### 7. Push Your Changes πŸš€ +```bash +git add . +git commit -m "Add my awesome feature" +git push origin feature/my-awesome-feature +``` + +### 8. Open a Pull Request πŸ”ƒ +1. Go to the [Pull Requests](https://github.com/Oucru-Innovations/vital-sqi/pulls) page. +2. Click `New Pull Request`. +3. Choose your branch and describe your changes. + +--- + +## Style Guide πŸ–ŒοΈ + +To keep our code consistent: +- Follow **PEP8** guidelines. +- Use meaningful variable and function names. +- Document your code with docstrings. +- Format code using `flake8`: +```bash +flake8 --config=.flake8 vital_sqi tests +``` + +--- + +## Local Development πŸ› οΈ + +For development and debugging, use the `Makefile`: +- Install the package: + ```bash + make install + ``` +- Run tests with coverage: + ```bash + make test + ``` + +--- + +## Code of Conduct ❀️ + +Be respectful and kind. We are committed to fostering an inclusive community where everyone feels welcome. + +--- + +## Need Help? 🀝 + +If you’re stuck or have any questions, feel free to: +- Open a discussion on the [Discussions](https://github.com/Oucru-Innovations/vital-sqi/discussions) page. +- Reach out via email: **support@oucru-innovations.org**. + +--- + +Thank you for contributing! Your efforts make **Vital_SQI** better for everyone. πŸš€ + +β€” The **Vital_SQI** Development Team