Skip to content

Commit

Permalink
Fix python format
Browse files Browse the repository at this point in the history
(cherry picked from commit 9a43dbf)
  • Loading branch information
trungleduc committed Oct 1, 2021
1 parent 2249c70 commit eaa99ee
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 22 deletions.
38 changes: 18 additions & 20 deletions tests/widget_lib/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
HERE = os.path.dirname(os.path.abspath(__file__))




# The name of the project
name = 'widget_lib'

Expand Down Expand Up @@ -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),
Expand All @@ -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',
Expand All @@ -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',
Expand All @@ -114,7 +112,7 @@
'sphinx_rtd_theme',
],
},
entry_points = {
entry_points={
},
)

Expand Down
5 changes: 4 additions & 1 deletion tests/widget_lib/widget_lib/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion tests/widget_lib/widget_lib/example.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit eaa99ee

Please sign in to comment.