You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
swarms/CONTRIBUTING.md

82 lines
2.0 KiB

# Contributing to Swarms 🛠️
2 years ago
6 months ago
Thank you for your interest in contributing to Swarms! This guide will help you get started with your contribution.
2 years ago
6 months ago
## Essential Steps for Contributing
2 years ago
6 months ago
### 1. Fork and Clone the Repository
2 years ago
6 months ago
1. Fork the Swarms repository to your GitHub account by clicking the "Fork" button in the top-right corner of the repository page.
2. Clone your forked repository to your local machine:
```
git clone https://github.com/kyegomez/swarms.git
```
2 years ago
6 months ago
### 2. Make Changes
2 years ago
6 months ago
1. Create a new branch for your changes:
```
git checkout -b your-branch-name
```
2. Make your desired changes to the codebase.
2 years ago
6 months ago
### 3. Commit and Push Changes
2 years ago
6 months ago
1. Stage your changes:
```
git add .
```
2. Commit your changes:
```
git commit -m "Your descriptive commit message"
```
3. Push your changes to your fork:
```
git push -u origin your-branch-name
```
2 years ago
6 months ago
### 4. Create a Pull Request
2 years ago
6 months ago
1. Go to the original Swarms repository on GitHub.
2. Click on "Pull Requests" and then "New Pull Request".
3. Select your fork and branch as the compare branch.
4. Click "Create Pull Request".
5. Fill in the pull request description and submit.
2 years ago
6 months ago
## Important Considerations
2 years ago
6 months ago
- Ensure your code follows the project's coding standards.
- Include tests for new features or bug fixes.
- Update documentation as necessary.
- Make sure your branch is up-to-date with the main repository before submitting a pull request.
2 years ago
6 months ago
## Additional Information
2 years ago
6 months ago
### Code Quality
2 years ago
6 months ago
We use pre-commit hooks to maintain code quality. To set up pre-commit:
6 months ago
1. Install pre-commit:
```
6 months ago
pip install pre-commit
```
6 months ago
2. Set up the git hook scripts:
```
6 months ago
pre-commit install
```
### Documentation
- We use mkdocs for documentation. To serve the docs locally:
```
mkdocs serve
```
6 months ago
### Testing
6 months ago
- Run tests using pytest:
```
pytest
```
6 months ago
For more detailed information on code quality, documentation, and testing, please refer to the full contributing guidelines in the repository.