Skip to content

Commit 77e5868

Browse files
perf: speed up mutmut with do_not_mutate, max_stack_depth, and --max-children 4
- Exclude __init__.py, const.py, exceptions.py via do_not_mutate (re-exports, constants, and trivial class declarations don't benefit from mutation testing) - Add max_stack_depth=8 to limit test-to-mutant call stack tracing depth - Increase --max-children from 2 to 4 (GitHub Actions ubuntu-24.04 has 4 vCPUs) Co-authored-by: deviantintegral <255023+deviantintegral@users.noreply.github.com>
1 parent c4af6e3 commit 77e5868

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ jobs:
2626
- name: Test
2727
run: uv run pytest --cov=flameconnect --cov-report=term-missing --tb=short
2828
- name: Mutation test
29-
run: uv run mutmut run --max-children 2
29+
run: uv run mutmut run --max-children 4

setup.cfg

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
[mutmut]
22
paths_to_mutate = src/flameconnect
33
also_copy = src
4+
do_not_mutate =
5+
*/__init__.py
6+
src/flameconnect/const.py
7+
src/flameconnect/exceptions.py
8+
max_stack_depth = 8

0 commit comments

Comments
 (0)