diff --git a/nncf/__init__.py b/nncf/__init__.py index 169cfbe444e..eedc32968df 100644 --- a/nncf/__init__.py +++ b/nncf/__init__.py @@ -32,8 +32,8 @@ _SUPPORTED_FRAMEWORKS = ["torch", "tensorflow", "onnx", "openvino"] -from importlib.util import find_spec as _find_spec # pylint:disable=wrong-import-position -from pathlib import Path as _Path # pylint:disable=wrong-import-position +from importlib.util import find_spec as _find_spec # noqa: E402 # pylint:disable=wrong-import-position +from pathlib import Path as _Path # noqa: E402 # pylint:disable=wrong-import-position _AVAILABLE_FRAMEWORKS = {} diff --git a/tests/torch/pytorch_patch_isolated.py b/tests/torch/pytorch_patch_isolated.py index 8106fb5d526..a83d6e3d42a 100644 --- a/tests/torch/pytorch_patch_isolated.py +++ b/tests/torch/pytorch_patch_isolated.py @@ -69,7 +69,7 @@ def test_jit_script_exception_preserves_patching_isolated(): try: torch.jit.script(compressed_model) # supposed to fail since torch.jit.script does not support NNCF models - except: # pylint:disable=bare-except + except: # noqa: E722 # pylint:disable=bare-except pass # torch.nn.Module.__call__ is one of the fundamental patched functions, if the code object points to NNCF code,