Skip to content

Commit 129c58c

Browse files
committed
style(cz): use lowercase in BaseCommitizen.default_style_config for consistency
#37
1 parent 908ad02 commit 129c58c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

commitizen/cz/base.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
class BaseCommitizen(metaclass=ABCMeta):
88
bump_pattern: Optional[str] = None
99
bump_map: Optional[dict] = None
10-
DEFAULT_STYLE_CONFIG: List[Tuple[str, str]] = [
10+
default_style_config: List[Tuple[str, str]] = [
1111
("qmark", "fg:#673ab7 bold"),
1212
("question", "bold"),
1313
("answer", "fg:#f44336 bold"),
@@ -23,7 +23,7 @@ class BaseCommitizen(metaclass=ABCMeta):
2323
def __init__(self, config: dict):
2424
self.config = config
2525
if not self.config.get("style"):
26-
self.config["style"] = BaseCommitizen.DEFAULT_STYLE_CONFIG
26+
self.config["style"] = BaseCommitizen.default_style_config
2727

2828
@abstractmethod
2929
def questions(self) -> list:
@@ -35,7 +35,7 @@ def message(self, answers: dict) -> str:
3535

3636
@property
3737
def style(self):
38-
return merge_styles(BaseCommitizen.DEFAULT_STYLE_CONFIG, Style(self.config["style"]))
38+
return merge_styles(BaseCommitizen.default_style_config, Style(self.config["style"]))
3939

4040
def example(self) -> str:
4141
"""Example of the commit message."""

0 commit comments

Comments
 (0)