forked from commitizen-tools/commitizen
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbase.py
More file actions
30 lines (22 loc) · 892 Bytes
/
Copy pathbase.py
File metadata and controls
30 lines (22 loc) · 892 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
from typing import Optional
from abc import ABCMeta, abstractmethod
class BaseCommitizen(metaclass=ABCMeta):
bump_pattern: Optional[str] = None
bump_map: Optional[dict] = None
def __init__(self, config: dict):
self.config = config
@abstractmethod
def questions(self) -> list:
"""Questions regarding the commit message."""
@abstractmethod
def message(self, answers: dict) -> str:
"""Format your git message."""
def example(self) -> str:
"""Example of the commit message."""
raise NotImplementedError("Not Implemented yet")
def schema(self) -> str:
"""Schema definition of the commit message."""
raise NotImplementedError("Not Implemented yet")
def info(self) -> str:
"""Information about the standardized commit message."""
raise NotImplementedError("Not Implemented yet")