Contributing
Contribute to Benchwise development.
Getting Started
Instructions for setting up your development environment to contribute to Benchwise.
- Fork the repository
- Clone your fork
- Install development dependencies
git clone https://github.com/YOUR_USERNAME/benchwise.git
cd benchwise
pip install -e ".[dev]"
Development Workflow
Key steps and tools for local development.
Running Tests
# All tests
python run_tests.py
# Basic tests only
python run_tests.py --basic
# Specific test file
pytest tests/test_core.py -v
Code Quality
# Run linter
ruff check .
# Auto-fix issues
ruff check --fix .
# Format code
ruff format .
Pre-commit Hooks
pre-commit run --all-files
Contributing Guidelines
Step-by-step process for making contributions.
-
Create a feature branch
git checkout -b feature/your-feature -
Make your changes
- Write clear, concise code
- Add tests for new features
- Update documentation
-
Test your changes
python run_tests.py -
Commit your changes
git commit -m "feat: add new feature"Use conventional commits:
feat:- New featuresfix:- Bug fixesdocs:- Documentationtest:- Testsrefactor:- Code refactoring
-
Push and create PR
git push origin feature/your-feature
Code Style
Guidelines for maintaining consistent code style.
- Follow PEP 8
- Use type hints
- Write docstrings for public APIs
- Keep functions focused and concise
Reporting Issues
How to report bugs or suggest features.
- Use GitHub Issues
- Provide clear description
- Include code examples
- Specify environment details
License
By contributing, you agree that your contributions will be licensed under the MIT License.