hacking: Specify white list rules in noqa explicity

If 'noqa' is specified all hacking checks are disabled.
It is better to ignore specific rules explicitly rather than
ignoring all. The recent flake8 supports this [1].

[1] http://flake8.pycqa.org/en/stable/user/ignoring-errors.html

Change-Id: I0f2a0cccf459c5a353f777a2be352c0faa8b18e0
This commit is contained in:
Shu Muto
2017-06-22 12:02:53 +09:00
parent 1efb2069dd
commit a13c830f1b
7 changed files with 7 additions and 29 deletions

View File

@@ -20,7 +20,7 @@ import setuptools
# setuptools if some other modules registered functions in `atexit`.
# solution from: http://bugs.python.org/issue15881#msg170215
try:
import multiprocessing # noqa
import multiprocessing # noqa: F401
except ImportError:
pass