(path: Path, content: str | None = None)
| 23 | |
| 24 | |
| 25 | def write_config(path: Path, content: str | None = None) -> None: |
| 26 | if path.suffix == ".toml": |
| 27 | if content is None: |
| 28 | content = "[tool.mypy]\nstrict = true" |
| 29 | path.write_text(content) |
| 30 | else: |
| 31 | if content is None: |
| 32 | content = "[mypy]\nstrict = True" |
| 33 | path.write_text(content) |
| 34 | |
| 35 | |
| 36 | class FindConfigFileSuite(unittest.TestCase): |
no outgoing calls
no test coverage detected
searching dependent graphs…