Write *data* as pretty-printed JSON and return the file path.
(self, name: str, data: Any)
| 65 | # -- writers ---------------------------------------------------------- |
| 66 | |
| 67 | def write_json(self, name: str, data: Any) -> Path: |
| 68 | """Write *data* as pretty-printed JSON and return the file path.""" |
| 69 | p = self.root / name |
| 70 | p.write_text(json.dumps(data, indent=2, ensure_ascii=False), encoding="utf-8") |
| 71 | return p |
| 72 | |
| 73 | def write_component_source( |
| 74 | self, |
no outgoing calls
no test coverage detected