Coverage for ansaittua/__init__.py: 100.00%

17 statements  

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

1"""Earned Value Management (Finnish: ansaittua arvonhallintaa) when coding swiftly.""" 

2 

3import os 

4import pathlib 

5from typing import List 

6 

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

8APP_ENV = APP_ALIAS.upper() 

9APP_NAME = locals()['__doc__'] 

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

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

12QUIET = False 

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

14ENCODING = 'utf-8' 

15ENCODING_ERRORS_POLICY = 'ignore' 

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

17 

18DEFAULT_LF_ONLY = 'YES' 

19 

20# [[[fill git_describe()]]] 

21__version__ = '2022.7.30+parent.cad5c0e2' 

22# [[[end]]] (checksum: bf3e4cb130b92c08b23ac44978b7d275) 

23__version_info__ = tuple( 

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

25) 

26__all__: List[str] = []