Thank you for your interest in contributing to CarbonOps — an open-source sustainability toolkit by FutureOps Technology Ltd.
We welcome contributions of all kinds: features, bug fixes, documentation, tests, and discussions.
git clone https://github.com/ktalpay/CarbonOps.git
cd CarbonOps
pip install -e ".[dev]"- Python 3.9+
- pytest
- ruff (linting)
- black (formatting)
- typer (CLI development)
carbonops/
cli/ # CLI entrypoints
core/ # Calculation, models, utilities
adapters/ # Data sources and integrations
tests/ # pytest test files
docs/ # Additional documentation
For all non-trivial changes, create an issue describing:
- What you want to change
- Why it is needed
- Alternatives considered
git checkout -b feature/my-changeAll new functionality must include tests.
Run tests with:
pytestruff check .
black .Your PR must include:
- A clear description
- Reference to the issue number
- Test results
- Screenshots (if applicable)
Maintainers will review your PR and may request changes.
pytest -qWe follow a simplified semantic commit style:
- feat: new feature
- fix: bug fix
- docs: documentation
- refactor: non-functional restructuring
- test: test improvements
- chore: repo maintenance
Example:
feat: add DEFRA 2024 dataset adapter
- Follow PEP8
- Use informative variable names
- Keep functions small and testable
- Avoid unnecessary dependencies
- Document complex logic with docstrings
All contributors must adhere to our Code of Conduct (CODE_OF_CONDUCT.md).
Your contributions help CarbonOps grow into the open sustainability standard we envision.
FutureOps appreciates your support!