Coverage for attribuutit/__init__.py: 100.00%

17 statements  

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

1"""Nodes, Edges, Faces, and Attributes (Finnish: "Solmut, reunat, pinnat ja attribuutit").""" 

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.8.1+parent.7635e35c' 

22# [[[end]]] (checksum: 336a0105003ee28994a568480df2fbd9) 

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] = []