Coverage for src / mafw / hookspecs.py: 100%

9 statements  

« prev     ^ index     » next       coverage.py v7.13.0, created at 2025-12-09 09:08 +0000

1# Copyright 2025 European Union 

2# Author: Bulgheroni Antonio (antonio.bulgheroni@ec.europa.eu) 

3# SPDX-License-Identifier: EUPL-1.2 

4""" 

5Defines the hook specification decorator bound the MAFw library. 

6""" 

7 

8from typing import TYPE_CHECKING, List 

9 

10import pluggy 

11 

12if TYPE_CHECKING: 

13 from mafw.lazy_import import ProcessorClassProtocol, UserInterfaceClassProtocol 

14 

15mafw_hookspec = pluggy.HookspecMarker('mafw') 

16 

17 

18@mafw_hookspec 

19def register_processors() -> List['ProcessorClassProtocol']: 

20 """Register multiple processor classes""" 

21 return [] # pragma: no cover 

22 

23 

24@mafw_hookspec 

25def register_user_interfaces() -> List['UserInterfaceClassProtocol']: 

26 """Register multiple user interfaces""" 

27 return [] # pragma: no cover 

28 

29 

30@mafw_hookspec 

31def register_db_model_modules() -> list[str]: 

32 """Register database model modules""" 

33 return [] # pragma: no cover