3
3
4
4
from prompt_toolkit .styles import Style , merge_styles
5
5
6
+ from commitizen .config .base_config import BaseConfig
7
+
6
8
7
9
class BaseCommitizen (metaclass = ABCMeta ):
8
10
bump_pattern : Optional [str ] = None
@@ -20,7 +22,7 @@ class BaseCommitizen(metaclass=ABCMeta):
20
22
("disabled" , "fg:#858585 italic" ),
21
23
]
22
24
23
- def __init__ (self , config : dict ):
25
+ def __init__ (self , config : BaseConfig ):
24
26
self .config = config
25
27
if not self .config .settings .get ("style" ):
26
28
self .config .settings .update ({"style" : BaseCommitizen .default_style_config })
@@ -42,18 +44,18 @@ def style(self):
42
44
]
43
45
)
44
46
45
- def example (self ) -> str :
47
+ def example (self ) -> Optional [ str ] :
46
48
"""Example of the commit message."""
47
49
raise NotImplementedError ("Not Implemented yet" )
48
50
49
- def schema (self ) -> str :
51
+ def schema (self ) -> Optional [ str ] :
50
52
"""Schema definition of the commit message."""
51
53
raise NotImplementedError ("Not Implemented yet" )
52
54
53
- def schema_pattern (self ) -> str :
55
+ def schema_pattern (self ) -> Optional [ str ] :
54
56
"""Regex matching the schema used for message validation"""
55
57
raise NotImplementedError ("Not Implemented yet" )
56
58
57
- def info (self ) -> str :
59
+ def info (self ) -> Optional [ str ] :
58
60
"""Information about the standardized commit message."""
59
61
raise NotImplementedError ("Not Implemented yet" )
0 commit comments