Contributing¶
Guidelines for contributing to DeepChopper development.
We welcome contributions! This guide covers setting up your development environment, coding standards, and the contribution process.
Getting Started¶
-
Fork the repository on GitHub.
-
Clone your fork locally:
- Set up your development environment:
# Install uv package manager
pip install uv
# Install dependencies
uv sync
# Build and install in development mode
maturin develop --release
# Run tests to verify
uv run pytest tests -k "not slow"
Alternatively, with conda:
# Create conda environment
conda create -n deepchopper python=3.10
conda activate deepchopper
# Install uv and dependencies
pip install uv
uv sync
# Build and install
maturin develop --release
Making Changes¶
- Create a new branch for your feature or bugfix:
-
Make your changes and commit them with a clear commit message.
-
Push your changes to your fork on GitHub:
- Open a pull request against the main repository.
Coding Standards¶
- Follow PEP 8 guidelines for Python code.
- Write clear, concise comments and docstrings.
- Ensure your code is compatible with Python 3.10+.
Testing¶
- Add unit tests for new functionality.
- Ensure all tests pass before submitting a pull request:
Documentation¶
- Update the README.md if you're adding or changing features.
- Add or update docstrings for new or modified functions and classes.
Submitting Pull Requests¶
- Ensure your PR description clearly describes the problem and solution.
- Include the relevant issue number if applicable.
- Make sure all tests pass and the code lints without errors.
Reporting Issues¶
- Use the GitHub issue tracker to report bugs or suggest features.
- Provide as much detail as possible, including steps to reproduce for bugs.
Thank you for contributing to DeepChopper!