Contributing¶
We welcome contributions to COMPAS Slicer!
Development Setup¶
-
Fork and clone the repository:
-
Install in development mode:
-
Verify tests pass:
Code Style¶
We use Ruff for linting and formatting:
# Check for issues
ruff check src/
# Auto-fix issues
ruff check --fix src/
# Format code
ruff format src/
Running Tests¶
# Run all tests
pytest
# Run with coverage
pytest --cov=compas_slicer
# Run specific test file
pytest tests/test_planar_slicing.py
Pull Request Process¶
- Create a feature branch from
master - Make your changes
- Ensure tests pass and code is formatted
- Add yourself to the authors in
pyproject.tomlif not already listed - Create a pull request with a clear description
Adding Examples¶
When adding new functionality:
- Add an example in
examples/demonstrating the feature - Ensure the example runs without errors
- Add documentation if needed
Documentation¶
Build the docs locally:
Then open http://localhost:8000 in your browser.
Releasing¶
Maintainers can release new versions:
Questions?¶
- Open an issue
- Contact the maintainers