Coverage for src / rendercv / cli / entry_point.py: 100%

9 statements  

« prev     ^ index     » next       coverage.py v7.13.4, created at 2026-03-25 13:49 +0000

1"""Entry point for the RenderCV CLI. 

2 

3Why: 

4 Users might install RenderCV with `pip install rendercv` instead of 

5 `pip install rendercv[full]`. This module catches that case and shows a helpful 

6 error message instead of a confusing `ImportError`. 

7""" 

8 

9import sys 

10 

11 

12def entry_point() -> None: 

13 """Entry point for the RenderCV CLI.""" 

14 try: 

15 from .app import app as cli_app # NOQA: PLC0415 

16 except ImportError: 

17 error_message = """ 

18It looks like you installed RenderCV with: 

19 

20 pip install rendercv 

21 

22But RenderCV needs to be installed with: 

23 

24 pip install "rendercv[full]" 

25 

26Please reinstall with the correct command above. 

27""" 

28 sys.stderr.write(error_message) 

29 raise SystemExit(1) from None 

30 

31 cli_app()