diff --git a/src/bindings/python/src/compatibility/openvino/__init__.py b/src/bindings/python/src/compatibility/openvino/__init__.py index 725f3b7509e..a6d7f27d69e 100644 --- a/src/bindings/python/src/compatibility/openvino/__init__.py +++ b/src/bindings/python/src/compatibility/openvino/__init__.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # Copyright (C) 2018-2022 Intel Corporation # SPDX-License-Identifier: Apache-2.0 -__path__ = __import__('pkgutil').extend_path(__path__, __name__) # type: ignore # mypy issue #1422 + +__path__ = __import__("pkgutil").extend_path(__path__, __name__) # type: ignore # mypy issue #1422 diff --git a/src/bindings/python/src/compatibility/openvino/inference_engine/__init__.py b/src/bindings/python/src/compatibility/openvino/inference_engine/__init__.py index 1b60171f322..b3ad4ae99e9 100644 --- a/src/bindings/python/src/compatibility/openvino/inference_engine/__init__.py +++ b/src/bindings/python/src/compatibility/openvino/inference_engine/__init__.py @@ -5,7 +5,7 @@ import os import sys -if sys.platform == 'win32': +if sys.platform == "win32": # Installer, yum, pip installs openvino dlls to the different directories # and those paths need to be visible to the openvino modules # @@ -13,11 +13,11 @@ if sys.platform == 'win32': # add the location of openvino dlls to your system PATH. # # looking for the libs in the pip installation path by default. - openvino_libs = [os.path.join(os.path.dirname(__file__), '..', '..', 'openvino', 'libs')] + openvino_libs = [os.path.join(os.path.dirname(__file__), "..", "..", "openvino", "libs")] # setupvars.bat script set all libs paths to OPENVINO_LIB_PATHS environment variable. - openvino_libs_installer = os.getenv('OPENVINO_LIB_PATHS') + openvino_libs_installer = os.getenv("OPENVINO_LIB_PATHS") if openvino_libs_installer: - openvino_libs.extend(openvino_libs_installer.split(';')) + openvino_libs.extend(openvino_libs_installer.split(";")) for lib in openvino_libs: lib_path = os.path.join(os.path.dirname(__file__), lib) if os.path.isdir(lib_path): @@ -25,9 +25,9 @@ if sys.platform == 'win32': if (3, 8) <= sys.version_info: os.add_dll_directory(os.path.abspath(lib_path)) else: - os.environ['PATH'] = os.path.abspath(lib_path) + ';' + os.environ['PATH'] + os.environ["PATH"] = os.path.abspath(lib_path) + ";" + os.environ["PATH"] from .ie_api import * -__all__ = ['IENetwork', 'TensorDesc', 'IECore', 'Blob', 'PreProcessInfo', 'get_version'] +__all__ = ["IENetwork", "TensorDesc", "IECore", "Blob", "PreProcessInfo", "get_version"] __version__ = get_version() # type: ignore diff --git a/src/bindings/python/src/compatibility/openvino/setup.cfg b/src/bindings/python/src/compatibility/openvino/setup.cfg index 15abb7dc3de..ddfd39a5831 100644 --- a/src/bindings/python/src/compatibility/openvino/setup.cfg +++ b/src/bindings/python/src/compatibility/openvino/setup.cfg @@ -1,4 +1,5 @@ [flake8] +inline-quotes = double filename = *.py, *.pyx max-line-length = 160 ignore = E203 diff --git a/src/bindings/python/src/openvino/__init__.py b/src/bindings/python/src/openvino/__init__.py index 9c19800f7ff..a6d7f27d69e 100644 --- a/src/bindings/python/src/openvino/__init__.py +++ b/src/bindings/python/src/openvino/__init__.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- # Copyright (C) 2018-2022 Intel Corporation # SPDX-License-Identifier: Apache-2.0