Based on pytest setup, though more lax. Currently only the tests are annotated so only helpful for them. Fix #721.