Cast code before testing for noqa lines