Search code examples
pythonchainer

What does "#NOQA" mean inside `__init__.py` file in Chainer library?


I am reading Chainer source code and noticed at https://github.com/chainer/chainer/blob/master/chainer/init.py#L7

from chainer import configuration  # NOQA
from chainer import cuda  # NOQA
from chainer import dataset  # NOQA
from chainer import datasets  # NOQA

What does #NOQA mean?

Thanks


Solution

  • # NOQA is an instruction for a linter to ignore checks on that line. Flake8/pep8 will not report on errors from lines ending with this. See the flake8 documentation on ignoring violations for some more details.