From eaa99eebf0bb01a2df57cf7f8afa2090e1ab25fe Mon Sep 17 00:00:00 2001 From: Duc Trung LE <leductrungxf@gmail.com> Date: Fri, 1 Oct 2021 11:47:06 +0000 Subject: [PATCH] Fix python format (cherry picked from commit 9a43dbfaf67f710b2549de4db60e1a5d1381f7ce) --- tests/widget_lib/setup.py | 38 ++++++++++++------------- tests/widget_lib/widget_lib/__init__.py | 5 +++- tests/widget_lib/widget_lib/example.py | 1 - 3 files changed, 22 insertions(+), 22 deletions(-) diff --git a/tests/widget_lib/setup.py b/tests/widget_lib/setup.py index 015292bb6..3aba321e8 100644 --- a/tests/widget_lib/setup.py +++ b/tests/widget_lib/setup.py @@ -23,8 +23,6 @@ HERE = os.path.dirname(os.path.abspath(__file__)) - - # The name of the project name = 'widget_lib' @@ -56,7 +54,7 @@ cmdclass = create_cmdclass('jsdeps', package_data_spec=package_data_spec, - data_files_spec=data_files_spec) + data_files_spec=data_files_spec) npm_install = combine_commands( install_npm(HERE, build_cmd='build:prod'), ensure_targets(jstargets), @@ -65,19 +63,19 @@ setup_args = dict( - name = name, - description = 'A custom Jupyter Widget library for testing Voila', - version = version, - scripts = glob(pjoin('scripts', '*')), - cmdclass = cmdclass, - packages = find_packages(), - author = 'Trung Le', - author_email = '', - url = 'https://github.com//widget_lib', - license = 'BSD', - platforms = "Linux, Mac OS X, Windows", - keywords = ['Jupyter', 'Widgets', 'IPython'], - classifiers = [ + name=name, + description='A custom Jupyter Widget library for testing Voila', + version=version, + scripts=glob(pjoin('scripts', '*')), + cmdclass=cmdclass, + packages=find_packages(), + author='Trung Le', + author_email='', + url='https://github.com//widget_lib', + license='BSD', + platforms="Linux, Mac OS X, Windows", + keywords=['Jupyter', 'Widgets', 'IPython'], + classifiers=[ 'Intended Audience :: Developers', 'Intended Audience :: Science/Research', 'License :: OSI Approved :: BSD License', @@ -89,12 +87,12 @@ 'Programming Language :: Python :: 3.7', 'Framework :: Jupyter', ], - include_package_data = True, + include_package_data=True, python_requires=">=3.6", - install_requires = [ + install_requires=[ 'ipywidgets>=7.0.0', ], - extras_require = { + extras_require={ 'test': [ 'pytest>=4.6', 'pytest-cov', @@ -114,7 +112,7 @@ 'sphinx_rtd_theme', ], }, - entry_points = { + entry_points={ }, ) diff --git a/tests/widget_lib/widget_lib/__init__.py b/tests/widget_lib/widget_lib/__init__.py index 8c79bf27e..333a2d419 100644 --- a/tests/widget_lib/widget_lib/__init__.py +++ b/tests/widget_lib/widget_lib/__init__.py @@ -5,7 +5,10 @@ # Distributed under the terms of the Modified BSD License. from .example import ModuleImportError, ViewRenderError, ModelInitializationError -from ._version import __version__, version_info +from ._version import __version__, version_info # noqa + +__all__ = ['ModuleImportError', 'ViewRenderError', 'ModelInitializationError'] + def _jupyter_labextension_paths(): """Called by Jupyter Lab Server to detect if it is a valid labextension and diff --git a/tests/widget_lib/widget_lib/example.py b/tests/widget_lib/widget_lib/example.py index 99577ced7..5bfb4bf9c 100644 --- a/tests/widget_lib/widget_lib/example.py +++ b/tests/widget_lib/widget_lib/example.py @@ -42,4 +42,3 @@ class ModuleImportError(DOMWidget): _view_name = Unicode('ModuleImportErrorView').tag(sync=True) _view_module = Unicode(module_name).tag(sync=True) _view_module_version = Unicode(module_version).tag(sync=True) -