(self, key: str, value: object)
| 44 | ) |
| 45 | |
| 46 | def set_key(self, key: str, value: object) -> Self: |
| 47 | config_doc = parse(self.path.read_bytes()) |
| 48 | |
| 49 | config_doc["tool"]["commitizen"][key] = value # type: ignore[index] |
| 50 | self.path.write_bytes(config_doc.as_string().encode(self._settings["encoding"])) |
| 51 | |
| 52 | return self |
| 53 | |
| 54 | def _parse_setting(self, data: bytes | str) -> None: |
| 55 | """We expect to have a section in pyproject looking like |
nothing calls this directly
no outgoing calls
no test coverage detected