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

1"""Rhiza Tools — Extra utilities and tools for the Rhiza ecosystem. 

2 

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. 

6 

7## Key features 

8 

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. 

13 

14## Quick start 

15 

16Bump the project version: 

17 

18```bash 

19rhiza tools bump 1.0.1 

20# or standalone 

21rhiza-tools bump 1.0.1 

22``` 

23 

24Create a release tag: 

25 

26```bash 

27rhiza tools release 

28``` 

29 

30## Main modules 

31 

32- `rhiza_tools.cli` — The main Typer application and command definitions. 

33 

34## Documentation 

35 

36For more details, see the [README.md](https://github.com/Jebel-Quant/rhiza-tools/blob/main/README.md). 

37""" 

38 

39from importlib.metadata import PackageNotFoundError, version 

40 

41try: 

42 __version__ = version("rhiza-tools") 

43except PackageNotFoundError: 

44 # Package is not installed, use a fallback or leave undefined 

45 __version__ = "unknown"