Skip to content

Commit 9350659

Browse files
committed
chore: Copy over mutmut_config.py
Branch: main Signed-off-by: Gabe Goodhart <ghart@us.ibm.com>
1 parent d8840c1 commit 9350659

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

mutmut_config.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# -*- coding: utf-8 -*-
2+
"""Configuration for mutmut mutation testing framework."""
3+
4+
5+
def pre_mutation(context):
6+
"""Skip files that shouldn't be mutated."""
7+
if context.filename.endswith("__init__.py"):
8+
context.skip = True
9+
elif "alembic" in context.filename:
10+
context.skip = True
11+
elif "migrations" in context.filename:
12+
context.skip = True
13+
14+
15+
def post_mutation(context):
16+
"""Any post-mutation processing."""
17+
pass

0 commit comments

Comments
 (0)