Coverage for sources/appcore/cli/__.py: 100%

8 statements  

« prev     ^ index     » next       coverage.py v7.15.2, created at 2026-07-19 00:58 +0000

1# vim: set filetype=python fileencoding=utf-8: 

2# -*- coding: utf-8 -*- 

3 

4#============================================================================# 

5# # 

6# Licensed under the Apache License, Version 2.0 (the "License"); # 

7# you may not use this file except in compliance with the License. # 

8# You may obtain a copy of the License at # 

9# # 

10# http://www.apache.org/licenses/LICENSE-2.0 # 

11# # 

12# Unless required by applicable law or agreed to in writing, software # 

13# distributed under the License is distributed on an "AS IS" BASIS, # 

14# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # 

15# See the License for the specific language governing permissions and # 

16# limitations under the License. # 

17# # 

18#============================================================================# 

19 

20 

21''' Internal imports and utilities for CLI subpackage. ''' 

22 

23 

24# ruff: noqa: F401,F403 

25 

26from .. import inscription 

27 

28from ..__ import * 

29from ..exceptions import DependencyAbsence 

30from ..preparation import prepare 

31from ..state import Globals 

32 

33 

34try: import rich 

35except ImportError as _error: # pragma: no cover 

36 raise DependencyAbsence( 'rich', 'CLI' ) from _error 

37try: import tomli_w 

38except ImportError as _error: # pragma: no cover 

39 raise DependencyAbsence( 'tomli-w', 'CLI' ) from _error 

40try: import tyro 

41except ImportError as _error: # pragma: no cover 

42 raise DependencyAbsence( 'tyro', 'CLI' ) from _error