I'm working on a mutation testing tool for Python, and one of the issues
I'll eventually have to sort out is how to let users disable certain
mutations in certain bits of code. One of the obvious approaches for this
is to use comments like pylint, so I'm interested in seeing if it's
possible to reuse the facilities that pylint has for this.
My needs are, I think, fairly similar: for specified blocks of code,
prevent (or perhaps otherwise modify) the application of certain mutation
operators. This feels much like telling pylint to ignore certain rules in
So, at a high level, is this feature something that can be easily
repurposed? Is it designed for reuse? I'm not currently using astroid, just
the standard ast module, but I'm willing to switch to astroid if necessary.
Sixty North AS