Coverage for src / rhiza_tools / __init__.py: 100%
5 statements
« prev ^ index » next coverage.py v7.13.1, created at 2026-01-05 10:07 +0000
« prev ^ index » next coverage.py v7.13.1, created at 2026-01-05 10:07 +0000
1"""Rhiza Tools — Extra utilities and tools for the Rhiza ecosystem.
3Rhiza Tools provides additional commands and utilities that extend the capabilities
4of the main Rhiza CLI. It includes tools for version management, release automation,
5and documentation maintenance.
7## Key features
9- **Version Bumping**: Automate version updates in `pyproject.toml`.
10- **Release Management**: Streamline the release process with git tag automation.
11- **Documentation Helpers**: Keep your README up-to-date with CLI help output.
12- **Flexible Usage**: Use as a `rhiza` plugin or as a standalone CLI.
14## Quick start
16Bump the project version:
18```bash
19rhiza tools bump 1.0.1
20# or standalone
21rhiza-tools bump 1.0.1
22```
24Create a release tag:
26```bash
27rhiza tools release
28```
30## Main modules
32- `rhiza_tools.cli` — The main Typer application and command definitions.
34## Documentation
36For more details, see the [README.md](https://github.com/Jebel-Quant/rhiza-tools/blob/main/README.md).
37"""
39from importlib.metadata import PackageNotFoundError, version
41try:
42 __version__ = version("rhiza-tools")
43except PackageNotFoundError:
44 # Package is not installed, use a fallback or leave undefined
45 __version__ = "unknown"