Skip to content

Commit a958ed4

Browse files
authored
Merge pull request #394 from commitizen-tools/fix/json-indent
fix: correct indentation for json config for better readability
2 parents dc22f2e + 986f2d8 commit a958ed4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

commitizen/config/json_config.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def set_key(self, key, value):
2727

2828
parser["commitizen"][key] = value
2929
with open(self.path, "w") as f:
30-
json.dump(parser, f)
30+
json.dump(parser, f, indent=2)
3131
return self
3232

3333
def _parse_setting(self, data: Union[bytes, str]):

0 commit comments

Comments
 (0)