Skip to content

Can I prevent mutants which mypy kills? #191

@MartinThoma

Description

@MartinThoma

I have many "false" surviving mutants like this one:

image

This mutant would be killed by mypy in the CI pipeline. However, it survives as I only run pytest -m "not slow" -x and pytest -m "not slow " && mypy app/ does not work. I've also tried pytest -m "not slow" --mypy -x, but that runs mypy over the tests as well which fails / makes each run pretty slow.

Do you have any suggestions what I could do?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions