If you can use flake8 instead – which wraps pyflakes as well as the pep8 checker – a line ending with
# NOQA
(in which the space is significant – 2 spaces between the end of the code and the #
, one between it and the NOQA
text) will tell the checker to ignore any errors on that line.