Create a default config file if it doesn't exist.
(self)
| 121 | json.dump(self._config, f, indent=2) |
| 122 | |
| 123 | def create_default_config(self) -> Path: |
| 124 | """Create a default config file if it doesn't exist.""" |
| 125 | if not self.config_file.exists(): |
| 126 | with open(self.config_file, 'w') as f: |
| 127 | json.dump(DEFAULT_CONFIG, f, indent=2) |
| 128 | return self.config_file |
| 129 | |
| 130 | @property |
| 131 | def all(self) -> Dict[str, Any]: |
no test coverage detected