Coverage for src / ezcompiler / shared / __init__.py: 100.00%

7 statements  

« prev     ^ index     » next       coverage.py v7.13.5, created at 2026-03-27 06:49 +0000

1# /////////////////////////////////////////////////////////////// 

2# SHARED - Shared configuration and exceptions 

3# Project: ezcompiler 

4# /////////////////////////////////////////////////////////////// 

5 

6""" 

7Shared module - Shared configuration and exceptions for EzCompiler. 

8 

9This module provides access to shared components used across all layers: 

10- CompilerConfig: Project configuration dataclass 

11- Exceptions: Service and utility exception hierarchy 

12""" 

13 

14from __future__ import annotations 

15 

16# /////////////////////////////////////////////////////////////// 

17# IMPORTS 

18# /////////////////////////////////////////////////////////////// 

19# Local imports 

20from .compilation_result import CompilationResult 

21from .compiler_config import CompilerConfig 

22from .exceptions import ( 

23 CompilationError, 

24 ConfigurationError, 

25 EzCompilerError, 

26 TemplateError, 

27 UploadError, 

28 VersionError, 

29) 

30from .exceptions.utils.file_exceptions import FileError 

31 

32# /////////////////////////////////////////////////////////////// 

33# TYPE ALIASES 

34# /////////////////////////////////////////////////////////////// 

35 

36# Backward compatibility alias 

37FileOperationError = FileError 

38 

39# /////////////////////////////////////////////////////////////// 

40# PUBLIC API 

41# /////////////////////////////////////////////////////////////// 

42 

43__all__ = [ 

44 # Configuration 

45 # Result types 

46 "CompilationResult", 

47 # Configuration 

48 "CompilerConfig", 

49 # Base exception 

50 "EzCompilerError", 

51 # Service exceptions 

52 "CompilationError", 

53 "ConfigurationError", 

54 "TemplateError", 

55 "UploadError", 

56 "VersionError", 

57 # File exceptions (backward compatibility alias) 

58 "FileOperationError", 

59]