File: mutmut_config.py

package info (click to toggle)
pypdf2 2.12.1-3%2Bdeb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 27,144 kB
  • sloc: python: 28,767; makefile: 119; sh: 2
file content (18 lines) | stat: -rw-r--r-- 412 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
"""
Configuration for mutmut.

See https://mutmut.readthedocs.io/en/latest/
"""


def pre_mutation(context):
    if "_codecs" in context.filename:
        context.skip = True

    line = context.current_source_line.strip()
    if "pragma: no cover" in line:
        context.skip = True
    if "deprecate" in line:
        context.skip = True
    if line.strip().startswith("logger"):
        context.skip = True