Skip to content

Commit

Permalink
Merge pull request #394 from commitizen-tools/fix/json-indent
Browse files Browse the repository at this point in the history
fix: correct indentation for json config for better readability
  • Loading branch information
woile authored Jun 24, 2021
2 parents dc22f2e + 986f2d8 commit a958ed4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commitizen/config/json_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def set_key(self, key, value):

parser["commitizen"][key] = value
with open(self.path, "w") as f:
json.dump(parser, f)
json.dump(parser, f, indent=2)
return self

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

0 comments on commit a958ed4

Please sign in to comment.