Coverage for kutoa/__init__.py: 0.00%

17 statements  

« prev     ^ index     » next       coverage.py v7.4.1, created at 2024-02-04 19:19:22 +00:00

1"""Weave (Finnish: kutoa) annotated json code examples with fill-ins from and to markdown prose.""" 

2 

3import os 

4import pathlib 

5 

6# [[[fill git_describe()]]] 

7__version__ = '2023.6.21+parent.g6145564c' 

8# [[[end]]] (checksum: 2c26e6e40e14f0f729531d0899c503f2) 

9__version_info__ = tuple( 

10 e if '-' not in e else e.split('-')[0] for part in __version__.split('+') for e in part.split('.') if e != 'parent' 

11) 

12 

13APP_ALIAS = str(pathlib.Path(__file__).parent.name) 

14APP_ENV = APP_ALIAS.upper() 

15APP_NAME = locals()['__doc__'] 

16DEBUG = bool(os.getenv(f'{APP_ENV}_DEBUG', '')) 

17VERBOSE = bool(os.getenv(f'{APP_ENV}_VERBOSE', '')) 

18QUIET = False 

19STRICT = bool(os.getenv(f'{APP_ENV}_STRICT', '')) 

20ENCODING = 'utf-8' 

21ENCODING_ERRORS_POLICY = 'ignore' 

22DEFAULT_CONFIG_NAME = f'.{APP_ALIAS}.json' 

23 

24VERSION = __version__ 

25VERSION_INFO = __version_info__ 

26 

27__all__ = [ 

28 'APP_ALIAS', 

29 'APP_ENV', 

30 'APP_NAME', 

31 'VERSION', 

32 'VERSION_INFO', 

33]