Getting started¶
Installation¶
Quick start¶
- Create
typemut.tomlin your project root:
[typemut]
module-path = "src/myproject"
test-command = "make typecheck" # must exit non-zero on type errors
checker = "mypy" # or pyright/basedpyright; needed when test-command is a wrapper like make
timeout = 30
[typemut.operators]
remove-union-member = true
remove-literal-member = true
widen-type = true
remove-optional = true
add-optional = true
widen-container-type = true
swap-iterator-generator = true
typevar-variance = true
- Run:
typemut run # full pipeline: discover + execute + report
typemut html --open # generate HTML report and open in browser
Or from another directory:
- On a real project, run mutants on several workers — see Parallel runs:
Next steps¶
- Operators — what typemut mutates.
- Using in CI — fail the build on new survivors with a baseline.
- Incremental runs — reuse kills of earlier runs to keep CI fast.
- Configuration — every
typemut.tomlkey.