From dcda11c32a12e0718ad8049f685ad27a3f1856e6 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sun, 29 Oct 2023 14:24:26 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- .../create_cmdclass/myproject/pyproject.toml | 7 +- tests/data/create_cmdclass/pyproject.toml | 71 ++++++++++--------- .../npm_builder/myextension/pyproject.toml | 5 +- tests/data/npm_builder/pyproject.toml | 49 ++++++------- 4 files changed, 71 insertions(+), 61 deletions(-) diff --git a/tests/data/create_cmdclass/myproject/pyproject.toml b/tests/data/create_cmdclass/myproject/pyproject.toml index 498df1e..30bdcf7 100644 --- a/tests/data/create_cmdclass/myproject/pyproject.toml +++ b/tests/data/create_cmdclass/myproject/pyproject.toml @@ -1,3 +1,8 @@ [build-system] -requires = ["jupyter_packaging==0.7.9", "jupyterlab==3.*", "setuptools>=40.8.0", "wheel"] build-backend = "setuptools.build_meta" +requires = [ + "jupyter_packaging==0.7.9", + "jupyterlab==3.*", + "setuptools>=40.8", + "wheel", +] diff --git a/tests/data/create_cmdclass/pyproject.toml b/tests/data/create_cmdclass/pyproject.toml index 963b251..2d93a67 100644 --- a/tests/data/create_cmdclass/pyproject.toml +++ b/tests/data/create_cmdclass/pyproject.toml @@ -1,59 +1,60 @@ [build-system] +build-backend = "hatchling.build" requires = [ - "hatchling>=1.3.1", - "jupyterlab==3.*", + "hatchling>=1.3.1", + "jupyterlab==3.*", ] -build-backend = "hatchling.build" [project] name = "myproject" +version = "0.1.0.dev0" description = "A Custom Jupyter Widget Library" readme = "README.md" +keywords = [ + "IPython", + "Jupyter", + "Widgets", +] license = { file = "LICENSE.txt" } -requires-python = ">=3.6" authors = [ { name = "me", email = "me@me.com" }, ] -keywords = [ - "IPython", - "Jupyter", - "Widgets", -] +requires-python = ">=3.6" classifiers = [ - "Framework :: Jupyter", - "Intended Audience :: Developers", - "Intended Audience :: Science/Research", - "License :: OSI Approved :: BSD License", - "Programming Language :: Python", - "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.4", - "Programming Language :: Python :: 3.5", - "Programming Language :: Python :: 3.6", - "Programming Language :: Python :: 3.7", + "Framework :: Jupyter", + "Intended Audience :: Developers", + "Intended Audience :: Science/Research", + "License :: OSI Approved :: BSD License", + "Programming Language :: Python", + "Programming Language :: Python :: 3 :: Only", + "Programming Language :: Python :: 3.6", + "Programming Language :: Python :: 3.7", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", ] dependencies = [ - "ipywidgets>=7.0.0", + "ipywidgets>=7", ] -version = "0.1.0.dev0" - [project.optional-dependencies] docs = [ - "jupyter_sphinx", - "nbsphinx", - "nbsphinx-link", - "pypandoc", - "pytest_check_links", - "recommonmark", - "sphinx>=1.5", - "sphinx_rtd_theme", + "jupyter_sphinx", + "nbsphinx", + "nbsphinx-link", + "pypandoc", + "pytest_check_links", + "recommonmark", + "sphinx>=1.5", + "sphinx_rtd_theme", +] +examples = [ ] -examples = [] test = [ - "nbval", - "pytest-cov", - "pytest>=4.6", + "nbval", + "pytest>=4.6", + "pytest-cov", ] - [project.urls] Homepage = "https://github.com/myorg/myproject" diff --git a/tests/data/npm_builder/myextension/pyproject.toml b/tests/data/npm_builder/myextension/pyproject.toml index f3179a0..851647f 100644 --- a/tests/data/npm_builder/myextension/pyproject.toml +++ b/tests/data/npm_builder/myextension/pyproject.toml @@ -1,6 +1,9 @@ [build-system] -requires = ["jupyter_packaging~=0.10,<2", "jupyterlab~=3.1"] build-backend = "jupyter_packaging.build_api" +requires = [ + "jupyter_packaging<2,~=0.10", + "jupyterlab~=3.1", +] [tool.jupyter-packaging.options] skip-if-exists = ["myextension/labextension/static/style.js"] diff --git a/tests/data/npm_builder/pyproject.toml b/tests/data/npm_builder/pyproject.toml index 0bb9a08..89f1031 100644 --- a/tests/data/npm_builder/pyproject.toml +++ b/tests/data/npm_builder/pyproject.toml @@ -1,41 +1,42 @@ [build-system] +build-backend = "hatchling.build" requires = [ - "hatchling>=1.3.1", - "jupyterlab~=3.1" + "hatchling>=1.3.1", + "jupyterlab~=3.1", ] -build-backend = "hatchling.build" [project] name = "myextension" +version = "0.1.0" description = "A JupyterLab extension." readme = "README.md" +keywords = [ + "Jupyter", + "JupyterLab", + "JupyterLab3", +] license = { file = "LICENSE" } -requires-python = ">=3.7" authors = [ { name = "me", email = "me@me.com" }, ] -keywords = [ - "Jupyter", - "JupyterLab", - "JupyterLab3", -] +requires-python = ">=3.7" classifiers = [ - "Framework :: Jupyter", - "Framework :: Jupyter :: JupyterLab", - "Framework :: Jupyter :: JupyterLab :: 3", - "Framework :: Jupyter :: JupyterLab :: Extensions", - "Framework :: Jupyter :: JupyterLab :: Extensions :: Prebuilt", - "License :: OSI Approved :: BSD License", - "Programming Language :: Python", - "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.7", - "Programming Language :: Python :: 3.8", - "Programming Language :: Python :: 3.9", - "Programming Language :: Python :: 3.10", + "Framework :: Jupyter", + "Framework :: Jupyter :: JupyterLab", + "Framework :: Jupyter :: JupyterLab :: 3", + "Framework :: Jupyter :: JupyterLab :: Extensions", + "Framework :: Jupyter :: JupyterLab :: Extensions :: Prebuilt", + "License :: OSI Approved :: BSD License", + "Programming Language :: Python", + "Programming Language :: Python :: 3 :: Only", + "Programming Language :: Python :: 3.7", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", +] +dependencies = [ ] -dependencies = [] -version = "0.1.0" - [project.urls] Homepage = "https://github.com/github_username/myextension"