Lint suppression cleanups (#47248)

* Unused pylint suppression cleanups

* Remove outdated pylint bug references

* Add flake8-noqa config and note to run it every now and then

* Add codes to noqa's

* Unused noqa cleanups
This commit is contained in:
Ville Skyttä
2021-03-02 10:02:04 +02:00
committed by GitHub
parent 38a2f196b8
commit dc880118a4
217 changed files with 237 additions and 306 deletions

View File

@ -341,9 +341,8 @@ class TensorFlowImageProcessor(ImageProcessingEntity):
start = time.perf_counter()
try:
import cv2 # pylint: disable=import-error, import-outside-toplevel
import cv2 # pylint: disable=import-outside-toplevel
# pylint: disable=no-member
img = cv2.imdecode(np.asarray(bytearray(image)), cv2.IMREAD_UNCHANGED)
inp = img[:, :, [2, 1, 0]] # BGR->RGB
inp_expanded = inp.reshape(1, inp.shape[0], inp.shape[1], 3)