forked from dbt-checkpoint/dbt-checkpoint
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmutmut_config.py
More file actions
25 lines (25 loc) · 798 Bytes
/
mutmut_config.py
File metadata and controls
25 lines (25 loc) · 798 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
def pre_mutation(context): # type: ignore
line = context.current_source_line.strip()
if line.startswith("if __name__ =="):
context.skip = True
if line.startswith("help="):
context.skip = True
if line.startswith("metavar="):
context.skip = True
# Do not wont prints
if line.startswith("print"):
context.skip = True
# Multiline prints
if line.startswith('"'):
context.skip = True
# f-string Multiline prints
if line.startswith('f"'):
context.skip = True
if line.startswith("default="):
context.skip = True
if line.startswith("nargs="):
context.skip = True
if line.startswith("required="):
context.skip = True
if line.startswith("@dataclass"):
context.skip = True