Skip to content

Commit 6e2ed75

Browse files
committed
feat(config): parse style in config
#37
1 parent 36c5674 commit 6e2ed75

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

commitizen/config.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ def read_raw_parser_conf(data: str) -> dict:
6161
"commitizen/__version__.py",
6262
"pyproject.toml"
6363
] # this tab at the end is important
64+
style = [
65+
["pointer", "reverse"],
66+
["question", "underline"]
67+
] # this tab at the end is important
6468
```
6569
"""
6670
config = configparser.ConfigParser(allow_no_value=True)
@@ -71,6 +75,10 @@ def read_raw_parser_conf(data: str) -> dict:
7175
files = _data["files"]
7276
_f = json.loads(files)
7377
_data.update({"files": _f})
78+
if "style" in _data:
79+
style = _data["style"]
80+
_s = json.loads(style)
81+
_data.update({"style": _s})
7482

7583
return _data
7684

0 commit comments

Comments
 (0)