From 40ad9bc540ddf53db672e5df3c933e27e9d8d278 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 2 Jul 2024 00:56:49 +0000 Subject: [PATCH 01/18] MAINT: update pip constraints and pre-commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/astral-sh/ruff-pre-commit: v0.4.10 → v0.5.0](https://github.com/astral-sh/ruff-pre-commit/compare/v0.4.10...v0.5.0) - [github.com/python-jsonschema/check-jsonschema: 0.28.5 → 0.28.6](https://github.com/python-jsonschema/check-jsonschema/compare/0.28.5...0.28.6) - [github.com/ComPWA/mirrors-pyright: v1.1.368 → v1.1.369](https://github.com/ComPWA/mirrors-pyright/compare/v1.1.368...v1.1.369) --- .pre-commit-config.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f92836d5..de815122 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -60,7 +60,7 @@ repos: - --extras-require=doc,jax,pwa,viz - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.4.10 + rev: v0.5.0 hooks: - id: ruff args: [--fix] @@ -113,7 +113,7 @@ repos: - --in-place - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.28.5 + rev: 0.28.6 hooks: - id: check-jsonschema name: Check CITATION.cff @@ -152,6 +152,6 @@ repos: - python - repo: https://github.com/ComPWA/mirrors-pyright - rev: v1.1.368 + rev: v1.1.369 hooks: - id: pyright From 5c6d95cbd0e05ef0cd32e19d6199343f9d094cbf Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 2 Jul 2024 00:58:48 +0000 Subject: [PATCH 02/18] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- docs/conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/conf.py b/docs/conf.py index ae25c4bf..82b311a8 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -18,7 +18,7 @@ def create_tensorflow_inventory() -> None: if os.path.exists("tensorflow.inv"): return subprocess.check_call( - ("sphobjinv", "convert", "-o", "zlib", "tensorflow.txt"), # noqa: S603 + ("sphobjinv", "convert", "-o", "zlib", "tensorflow.txt"), ) From bddf043c0eb67f7dc67714fc0256136ed39e12b6 Mon Sep 17 00:00:00 2001 From: GitHub Date: Tue, 2 Jul 2024 01:03:33 +0000 Subject: [PATCH 03/18] MAINT: update pip constraints and pre-commit --- .constraints/py3.10.txt | 34 +++++++++++++++++----------------- .constraints/py3.11.txt | 34 +++++++++++++++++----------------- .constraints/py3.12.txt | 32 ++++++++++++++++---------------- .constraints/py3.8.txt | 20 ++++++++++---------- .constraints/py3.9.txt | 30 +++++++++++++++--------------- 5 files changed, 75 insertions(+), 75 deletions(-) diff --git a/.constraints/py3.10.txt b/.constraints/py3.10.txt index 784948ee..8f01caa3 100644 --- a/.constraints/py3.10.txt +++ b/.constraints/py3.10.txt @@ -30,7 +30,7 @@ comm==0.2.2 contourpy==1.2.1 coverage==7.5.4 cycler==0.12.1 -debugpy==1.8.1 +debugpy==1.8.2 decorator==5.1.1 defusedxml==0.7.1 distlib==0.3.8 @@ -45,7 +45,7 @@ filelock==3.15.4 flatbuffers==24.3.25 fonttools==4.53.0 fqdn==1.5.1 -gast==0.5.4 +gast==0.6.0 gitdb==4.0.11 gitpython==3.1.43 google-pasta==0.2.0 @@ -61,11 +61,11 @@ identify==2.5.36 idna==3.7 imagesize==1.4.1 iminuit==2.26.0 -importlib-metadata==7.2.1 +importlib-metadata==8.0.0 iniconfig==2.0.0 -ipykernel==6.29.4 +ipykernel==6.29.5 ipympl==0.9.4 -ipython==8.25.0 +ipython==8.26.0 ipython-genutils==0.2.0 ipywidgets==8.1.3 isoduration==20.11.0 @@ -88,7 +88,7 @@ jupyter-lsp==2.2.5 jupyter-server==2.14.1 jupyter-server-mathjax==0.2.6 jupyter-server-terminals==0.5.3 -jupyterlab==4.2.2 +jupyterlab==4.2.3 jupyterlab-code-formatter==2.2.1 jupyterlab-git==0.50.1 jupyterlab-lsp==5.1.0 @@ -96,7 +96,7 @@ jupyterlab-myst==2.4.2 jupyterlab-pygments==0.3.0 jupyterlab-server==2.27.2 jupyterlab-widgets==3.0.11 -keras==3.3.3 +keras==3.4.1 kiwisolver==1.4.5 libclang==18.1.1 llvmlite==0.43.0 @@ -111,9 +111,9 @@ mdurl==0.1.2 mistune==3.0.2 ml-dtypes==0.3.2 mpmath==1.3.0 -mypy==1.10.0 +mypy==1.10.1 mypy-extensions==1.0.0 -myst-nb==1.1.0 +myst-nb==1.1.1 myst-parser==3.0.1 namex==0.0.8 nbclient==0.6.8 @@ -138,7 +138,7 @@ particle==0.24.0 pathspec==0.12.1 pexpect==4.9.0 phasespace==1.10.3 -pillow==10.3.0 +pillow==10.4.0 platformdirs==4.2.2 pluggy==1.5.0 pre-commit==3.7.1 @@ -151,7 +151,7 @@ pure-eval==0.2.2 py-cpuinfo==9.0.0 pyarrow==16.1.0 pycparser==2.22 -pydata-sphinx-theme==0.15.3 +pydata-sphinx-theme==0.15.4 pygments==2.18.0 pyparsing==3.1.2 pyproject-api==1.7.1 @@ -180,8 +180,8 @@ rfc3986-validator==0.1.1 rich==13.7.1 rope==1.13.0 rpds-py==0.18.1 -ruff==0.4.10 -scipy==1.13.1 +ruff==0.5.0 +scipy==1.14.0 send2trash==1.8.3 six==1.16.0 smmap==5.0.1 @@ -212,8 +212,8 @@ sympy==1.12.1 tabulate==0.9.0 tensorboard==2.16.2 tensorboard-data-server==0.7.2 -tensorflow==2.16.1 -tensorflow-io-gcs-filesystem==0.37.0 +tensorflow==2.16.2 +tensorflow-io-gcs-filesystem==0.37.1 tensorflow-probability==0.24.0 termcolor==2.4.0 terminado==0.18.1 @@ -223,11 +223,11 @@ tornado==6.4.1 tox==4.15.1 tqdm==4.66.4 traitlets==5.14.3 -types-protobuf==5.26.0.20240422 +types-protobuf==5.27.0.20240626 types-python-dateutil==2.9.0.20240316 types-pyyaml==6.0.12.20240311 types-requests==2.32.0.20240622 -types-tensorflow==2.16.0.20240618 +types-tensorflow==2.16.0.20240627 types-tqdm==4.66.0.20240417 typing-extensions==4.12.2 tzdata==2024.1 diff --git a/.constraints/py3.11.txt b/.constraints/py3.11.txt index fb113061..de814749 100644 --- a/.constraints/py3.11.txt +++ b/.constraints/py3.11.txt @@ -30,7 +30,7 @@ comm==0.2.2 contourpy==1.2.1 coverage==7.5.4 cycler==0.12.1 -debugpy==1.8.1 +debugpy==1.8.2 decorator==5.1.1 defusedxml==0.7.1 distlib==0.3.8 @@ -44,7 +44,7 @@ filelock==3.15.4 flatbuffers==24.3.25 fonttools==4.53.0 fqdn==1.5.1 -gast==0.5.4 +gast==0.6.0 gitdb==4.0.11 gitpython==3.1.43 google-pasta==0.2.0 @@ -60,11 +60,11 @@ identify==2.5.36 idna==3.7 imagesize==1.4.1 iminuit==2.26.0 -importlib-metadata==7.2.1 +importlib-metadata==8.0.0 iniconfig==2.0.0 -ipykernel==6.29.4 +ipykernel==6.29.5 ipympl==0.9.4 -ipython==8.25.0 +ipython==8.26.0 ipython-genutils==0.2.0 ipywidgets==8.1.3 isoduration==20.11.0 @@ -87,7 +87,7 @@ jupyter-lsp==2.2.5 jupyter-server==2.14.1 jupyter-server-mathjax==0.2.6 jupyter-server-terminals==0.5.3 -jupyterlab==4.2.2 +jupyterlab==4.2.3 jupyterlab-code-formatter==2.2.1 jupyterlab-git==0.50.1 jupyterlab-lsp==5.1.0 @@ -95,7 +95,7 @@ jupyterlab-myst==2.4.2 jupyterlab-pygments==0.3.0 jupyterlab-server==2.27.2 jupyterlab-widgets==3.0.11 -keras==3.3.3 +keras==3.4.1 kiwisolver==1.4.5 libclang==18.1.1 llvmlite==0.43.0 @@ -110,9 +110,9 @@ mdurl==0.1.2 mistune==3.0.2 ml-dtypes==0.3.2 mpmath==1.3.0 -mypy==1.10.0 +mypy==1.10.1 mypy-extensions==1.0.0 -myst-nb==1.1.0 +myst-nb==1.1.1 myst-parser==3.0.1 namex==0.0.8 nbclient==0.6.8 @@ -137,7 +137,7 @@ particle==0.24.0 pathspec==0.12.1 pexpect==4.9.0 phasespace==1.10.3 -pillow==10.3.0 +pillow==10.4.0 platformdirs==4.2.2 pluggy==1.5.0 pre-commit==3.7.1 @@ -150,7 +150,7 @@ pure-eval==0.2.2 py-cpuinfo==9.0.0 pyarrow==16.1.0 pycparser==2.22 -pydata-sphinx-theme==0.15.3 +pydata-sphinx-theme==0.15.4 pygments==2.18.0 pyparsing==3.1.2 pyproject-api==1.7.1 @@ -179,8 +179,8 @@ rfc3986-validator==0.1.1 rich==13.7.1 rope==1.13.0 rpds-py==0.18.1 -ruff==0.4.10 -scipy==1.13.1 +ruff==0.5.0 +scipy==1.14.0 send2trash==1.8.3 six==1.16.0 smmap==5.0.1 @@ -211,8 +211,8 @@ sympy==1.12.1 tabulate==0.9.0 tensorboard==2.16.2 tensorboard-data-server==0.7.2 -tensorflow==2.16.1 -tensorflow-io-gcs-filesystem==0.37.0 +tensorflow==2.16.2 +tensorflow-io-gcs-filesystem==0.37.1 tensorflow-probability==0.24.0 termcolor==2.4.0 terminado==0.18.1 @@ -221,11 +221,11 @@ tornado==6.4.1 tox==4.15.1 tqdm==4.66.4 traitlets==5.14.3 -types-protobuf==5.26.0.20240422 +types-protobuf==5.27.0.20240626 types-python-dateutil==2.9.0.20240316 types-pyyaml==6.0.12.20240311 types-requests==2.32.0.20240622 -types-tensorflow==2.16.0.20240618 +types-tensorflow==2.16.0.20240627 types-tqdm==4.66.0.20240417 typing-extensions==4.12.2 tzdata==2024.1 diff --git a/.constraints/py3.12.txt b/.constraints/py3.12.txt index 41825a1e..6f4d087b 100644 --- a/.constraints/py3.12.txt +++ b/.constraints/py3.12.txt @@ -30,7 +30,7 @@ comm==0.2.2 contourpy==1.2.1 coverage==7.5.4 cycler==0.12.1 -debugpy==1.8.1 +debugpy==1.8.2 decorator==5.1.1 defusedxml==0.7.1 distlib==0.3.8 @@ -44,7 +44,7 @@ filelock==3.15.4 flatbuffers==24.3.25 fonttools==4.53.0 fqdn==1.5.1 -gast==0.5.4 +gast==0.6.0 gitdb==4.0.11 gitpython==3.1.43 google-pasta==0.2.0 @@ -60,11 +60,11 @@ identify==2.5.36 idna==3.7 imagesize==1.4.1 iminuit==2.26.0 -importlib-metadata==7.2.1 +importlib-metadata==8.0.0 iniconfig==2.0.0 -ipykernel==6.29.4 +ipykernel==6.29.5 ipympl==0.9.4 -ipython==8.25.0 +ipython==8.26.0 ipython-genutils==0.2.0 ipywidgets==8.1.3 isoduration==20.11.0 @@ -87,7 +87,7 @@ jupyter-lsp==2.2.5 jupyter-server==2.14.1 jupyter-server-mathjax==0.2.6 jupyter-server-terminals==0.5.3 -jupyterlab==4.2.2 +jupyterlab==4.2.3 jupyterlab-code-formatter==2.2.1 jupyterlab-git==0.50.1 jupyterlab-lsp==5.1.0 @@ -95,7 +95,7 @@ jupyterlab-myst==2.4.2 jupyterlab-pygments==0.3.0 jupyterlab-server==2.27.2 jupyterlab-widgets==3.0.11 -keras==3.3.3 +keras==3.4.1 kiwisolver==1.4.5 libclang==18.1.1 llvmlite==0.43.0 @@ -110,9 +110,9 @@ mdurl==0.1.2 mistune==3.0.2 ml-dtypes==0.3.2 mpmath==1.3.0 -mypy==1.10.0 +mypy==1.10.1 mypy-extensions==1.0.0 -myst-nb==1.1.0 +myst-nb==1.1.1 myst-parser==3.0.1 namex==0.0.8 nbclient==0.6.8 @@ -137,7 +137,7 @@ particle==0.24.0 pathspec==0.12.1 pexpect==4.9.0 phasespace==1.10.3 -pillow==10.3.0 +pillow==10.4.0 platformdirs==4.2.2 pluggy==1.5.0 pre-commit==3.7.1 @@ -150,7 +150,7 @@ pure-eval==0.2.2 py-cpuinfo==9.0.0 pyarrow==16.1.0 pycparser==2.22 -pydata-sphinx-theme==0.15.3 +pydata-sphinx-theme==0.15.4 pygments==2.18.0 pyparsing==3.1.2 pyproject-api==1.7.1 @@ -179,8 +179,8 @@ rfc3986-validator==0.1.1 rich==13.7.1 rope==1.13.0 rpds-py==0.18.1 -ruff==0.4.10 -scipy==1.13.1 +ruff==0.5.0 +scipy==1.14.0 send2trash==1.8.3 six==1.16.0 smmap==5.0.1 @@ -211,7 +211,7 @@ sympy==1.12.1 tabulate==0.9.0 tensorboard==2.16.2 tensorboard-data-server==0.7.2 -tensorflow==2.16.1 +tensorflow==2.16.2 tensorflow-probability==0.24.0 termcolor==2.4.0 terminado==0.18.1 @@ -220,11 +220,11 @@ tornado==6.4.1 tox==4.15.1 tqdm==4.66.4 traitlets==5.14.3 -types-protobuf==5.26.0.20240422 +types-protobuf==5.27.0.20240626 types-python-dateutil==2.9.0.20240316 types-pyyaml==6.0.12.20240311 types-requests==2.32.0.20240622 -types-tensorflow==2.16.0.20240618 +types-tensorflow==2.16.0.20240627 types-tqdm==4.66.0.20240417 typing-extensions==4.12.2 tzdata==2024.1 diff --git a/.constraints/py3.8.txt b/.constraints/py3.8.txt index cef295bb..8eda72f9 100644 --- a/.constraints/py3.8.txt +++ b/.constraints/py3.8.txt @@ -31,7 +31,7 @@ comm==0.2.2 contourpy==1.1.1 coverage==7.5.4 cycler==0.12.1 -debugpy==1.8.1 +debugpy==1.8.2 decorator==5.1.1 defusedxml==0.7.1 distlib==0.3.8 @@ -49,7 +49,7 @@ fqdn==1.5.1 gast==0.4.0 gitdb==4.0.11 gitpython==3.1.43 -google-auth==2.30.0 +google-auth==2.31.0 google-auth-oauthlib==0.4.6 google-pasta==0.2.0 graphviz==0.20.3 @@ -64,10 +64,10 @@ identify==2.5.36 idna==3.7 imagesize==1.4.1 iminuit==2.26.0 -importlib-metadata==7.2.1 +importlib-metadata==8.0.0 importlib-resources==6.4.0 iniconfig==2.0.0 -ipykernel==6.29.4 +ipykernel==6.29.5 ipympl==0.9.3 ipython==8.12.3 ipython-genutils==0.2.0 @@ -92,7 +92,7 @@ jupyter-lsp==2.2.5 jupyter-server==2.14.1 jupyter-server-mathjax==0.2.6 jupyter-server-terminals==0.5.3 -jupyterlab==4.2.2 +jupyterlab==4.2.3 jupyterlab-code-formatter==2.2.1 jupyterlab-git==0.50.1 jupyterlab-lsp==5.1.0 @@ -116,7 +116,7 @@ mdurl==0.1.2 mistune==3.0.2 ml-dtypes==0.2.0 mpmath==1.3.0 -mypy==1.10.0 +mypy==1.10.1 mypy-extensions==1.0.0 myst-nb==0.17.2 myst-parser==0.18.1 @@ -143,7 +143,7 @@ pathspec==0.12.1 pexpect==4.9.0 phasespace==1.9.0 pickleshare==0.7.5 -pillow==10.3.0 +pillow==10.4.0 pkgutil-resolve-name==1.3.10 platformdirs==4.2.2 pluggy==1.5.0 @@ -189,7 +189,7 @@ rfc3986-validator==0.1.1 rope==1.13.0 rpds-py==0.18.1 rsa==4.9 -ruff==0.4.10 +ruff==0.5.0 scipy==1.10.1 send2trash==1.8.3 six==1.16.0 @@ -233,11 +233,11 @@ tornado==6.4.1 tox==4.15.1 tqdm==4.66.4 traitlets==5.14.3 -types-protobuf==5.26.0.20240422 +types-protobuf==5.27.0.20240626 types-python-dateutil==2.9.0.20240316 types-pyyaml==6.0.12.20240311 types-requests==2.32.0.20240622 -types-tensorflow==2.16.0.20240618 +types-tensorflow==2.16.0.20240627 types-tqdm==4.66.0.20240417 typing-extensions==4.12.2 tzdata==2024.1 diff --git a/.constraints/py3.9.txt b/.constraints/py3.9.txt index eb5909ff..2b4e52cc 100644 --- a/.constraints/py3.9.txt +++ b/.constraints/py3.9.txt @@ -30,7 +30,7 @@ comm==0.2.2 contourpy==1.2.1 coverage==7.5.4 cycler==0.12.1 -debugpy==1.8.1 +debugpy==1.8.2 decorator==5.1.1 defusedxml==0.7.1 distlib==0.3.8 @@ -45,7 +45,7 @@ filelock==3.15.4 flatbuffers==24.3.25 fonttools==4.53.0 fqdn==1.5.1 -gast==0.5.4 +gast==0.6.0 gitdb==4.0.11 gitpython==3.1.43 google-pasta==0.2.0 @@ -61,10 +61,10 @@ identify==2.5.36 idna==3.7 imagesize==1.4.1 iminuit==2.26.0 -importlib-metadata==7.2.1 +importlib-metadata==8.0.0 importlib-resources==6.4.0 iniconfig==2.0.0 -ipykernel==6.29.4 +ipykernel==6.29.5 ipympl==0.9.4 ipython==8.18.1 ipython-genutils==0.2.0 @@ -89,7 +89,7 @@ jupyter-lsp==2.2.5 jupyter-server==2.14.1 jupyter-server-mathjax==0.2.6 jupyter-server-terminals==0.5.3 -jupyterlab==4.2.2 +jupyterlab==4.2.3 jupyterlab-code-formatter==2.2.1 jupyterlab-git==0.50.1 jupyterlab-lsp==5.1.0 @@ -97,7 +97,7 @@ jupyterlab-myst==2.4.2 jupyterlab-pygments==0.3.0 jupyterlab-server==2.27.2 jupyterlab-widgets==3.0.11 -keras==3.3.3 +keras==3.4.1 kiwisolver==1.4.5 libclang==18.1.1 llvmlite==0.43.0 @@ -112,9 +112,9 @@ mdurl==0.1.2 mistune==3.0.2 ml-dtypes==0.3.2 mpmath==1.3.0 -mypy==1.10.0 +mypy==1.10.1 mypy-extensions==1.0.0 -myst-nb==1.1.0 +myst-nb==1.1.1 myst-parser==3.0.1 namex==0.0.8 nbclient==0.6.8 @@ -139,7 +139,7 @@ particle==0.24.0 pathspec==0.12.1 pexpect==4.9.0 phasespace==1.10.3 -pillow==10.3.0 +pillow==10.4.0 platformdirs==4.2.2 pluggy==1.5.0 pre-commit==3.7.1 @@ -152,7 +152,7 @@ pure-eval==0.2.2 py-cpuinfo==9.0.0 pyarrow==16.1.0 pycparser==2.22 -pydata-sphinx-theme==0.15.3 +pydata-sphinx-theme==0.15.4 pygments==2.18.0 pyparsing==3.1.2 pyproject-api==1.7.1 @@ -181,7 +181,7 @@ rfc3986-validator==0.1.1 rich==13.7.1 rope==1.13.0 rpds-py==0.18.1 -ruff==0.4.10 +ruff==0.5.0 scipy==1.13.1 send2trash==1.8.3 six==1.16.0 @@ -213,8 +213,8 @@ sympy==1.12.1 tabulate==0.9.0 tensorboard==2.16.2 tensorboard-data-server==0.7.2 -tensorflow==2.16.1 -tensorflow-io-gcs-filesystem==0.37.0 +tensorflow==2.16.2 +tensorflow-io-gcs-filesystem==0.37.1 tensorflow-probability==0.24.0 termcolor==2.4.0 terminado==0.18.1 @@ -224,11 +224,11 @@ tornado==6.4.1 tox==4.15.1 tqdm==4.66.4 traitlets==5.14.3 -types-protobuf==5.26.0.20240422 +types-protobuf==5.27.0.20240626 types-python-dateutil==2.9.0.20240316 types-pyyaml==6.0.12.20240311 types-requests==2.32.0.20240622 -types-tensorflow==2.16.0.20240618 +types-tensorflow==2.16.0.20240627 types-tqdm==4.66.0.20240417 typing-extensions==4.12.2 tzdata==2024.1 From ceb703d23de7e38793226fd3bdcc958aa061c0a4 Mon Sep 17 00:00:00 2001 From: Remco de Boer <29308176+redeboer@users.noreply.github.com> Date: Mon, 5 Aug 2024 11:52:46 +0200 Subject: [PATCH 04/18] DX: implement `.envrc` for `direnv` --- .envrc | 1 + .vscode/settings.json | 1 + 2 files changed, 2 insertions(+) create mode 100644 .envrc diff --git a/.envrc b/.envrc new file mode 100644 index 00000000..cce3aa58 --- /dev/null +++ b/.envrc @@ -0,0 +1 @@ +layout anaconda diff --git a/.vscode/settings.json b/.vscode/settings.json index 96408bc4..6cbcf264 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -65,6 +65,7 @@ "python.analysis.autoImportCompletions": false, "python.analysis.inlayHints.pytestParameters": true, "python.analysis.typeCheckingMode": "strict", + "python.terminal.activateEnvironment": false, "python.testing.pytestArgs": ["--color=no", "--no-cov"], "python.testing.pytestEnabled": true, "python.testing.unittestEnabled": false, From 8cd262036b749ec04ded1dc670241fef06877c60 Mon Sep 17 00:00:00 2001 From: GitHub Date: Mon, 5 Aug 2024 09:54:09 +0000 Subject: [PATCH 05/18] MAINT: update pip constraints and pre-commit --- .constraints/py3.10.txt | 98 ++++++++++++++++++++--------------------- .constraints/py3.11.txt | 96 ++++++++++++++++++++-------------------- .constraints/py3.12.txt | 96 ++++++++++++++++++++-------------------- .constraints/py3.8.txt | 66 +++++++++++++-------------- .constraints/py3.9.txt | 94 +++++++++++++++++++-------------------- .pre-commit-config.yaml | 10 ++--- 6 files changed, 230 insertions(+), 230 deletions(-) diff --git a/.constraints/py3.10.txt b/.constraints/py3.10.txt index 8f01caa3..8cc09c12 100644 --- a/.constraints/py3.10.txt +++ b/.constraints/py3.10.txt @@ -11,14 +11,14 @@ arrow==1.3.0 asttokens==2.4.1 astunparse==1.6.3 async-lru==2.0.4 -attrs==23.2.0 +attrs==24.1.0 babel==2.15.0 beautifulsoup4==4.12.3 -black==24.4.2 +black==24.8.0 bleach==6.1.0 -cachetools==5.3.3 +cachetools==5.4.0 cattrs==23.2.3 -certifi==2024.6.2 +certifi==2024.7.4 cffi==1.16.0 cfgv==3.4.0 chardet==5.2.0 @@ -28,22 +28,22 @@ cloudpickle==3.0.0 colorama==0.4.6 comm==0.2.2 contourpy==1.2.1 -coverage==7.5.4 +coverage==7.6.1 cycler==0.12.1 -debugpy==1.8.2 +debugpy==1.8.3 decorator==5.1.1 defusedxml==0.7.1 distlib==0.3.8 dm-tree==0.1.8 docstring-to-markdown==0.15 docutils==0.21.2 -exceptiongroup==1.2.1 +exceptiongroup==1.2.2 execnet==2.1.1 executing==2.0.1 fastjsonschema==2.20.0 filelock==3.15.4 flatbuffers==24.3.25 -fonttools==4.53.0 +fonttools==4.53.1 fqdn==1.5.1 gast==0.6.0 gitdb==4.0.11 @@ -51,17 +51,17 @@ gitpython==3.1.43 google-pasta==0.2.0 graphviz==0.20.3 greenlet==3.0.3 -grpcio==1.64.1 +grpcio==1.65.4 h11==0.14.0 h5py==3.11.0 hepunits==2.3.4 httpcore==1.0.5 httpx==0.27.0 -identify==2.5.36 +identify==2.6.0 idna==3.7 imagesize==1.4.1 -iminuit==2.26.0 -importlib-metadata==8.0.0 +iminuit==2.28.0 +importlib-metadata==8.2.0 iniconfig==2.0.0 ipykernel==6.29.5 ipympl==0.9.4 @@ -70,13 +70,13 @@ ipython-genutils==0.2.0 ipywidgets==8.1.3 isoduration==20.11.0 isort==5.13.2 -jax==0.4.30 -jaxlib==0.4.30 +jax==0.4.31 +jaxlib==0.4.31 jedi==0.19.1 jinja2==3.1.4 json5==0.9.25 jsonpointer==3.0.0 -jsonschema==4.22.0 +jsonschema==4.23.0 jsonschema-specifications==2023.12.1 jupyter==1.0.0 jupyter-cache==1.0.0 @@ -85,16 +85,16 @@ jupyter-console==6.6.3 jupyter-core==5.7.2 jupyter-events==0.10.0 jupyter-lsp==2.2.5 -jupyter-server==2.14.1 +jupyter-server==2.14.2 jupyter-server-mathjax==0.2.6 jupyter-server-terminals==0.5.3 -jupyterlab==4.2.3 -jupyterlab-code-formatter==2.2.1 +jupyterlab==4.2.4 +jupyterlab-code-formatter==3.0.0 jupyterlab-git==0.50.1 jupyterlab-lsp==5.1.0 jupyterlab-myst==2.4.2 jupyterlab-pygments==0.3.0 -jupyterlab-server==2.27.2 +jupyterlab-server==2.27.3 jupyterlab-widgets==3.0.11 keras==3.4.1 kiwisolver==1.4.5 @@ -109,9 +109,9 @@ matplotlib-inline==0.1.7 mdit-py-plugins==0.4.1 mdurl==0.1.2 mistune==3.0.2 -ml-dtypes==0.3.2 +ml-dtypes==0.4.0 mpmath==1.3.0 -mypy==1.10.1 +mypy==1.11.1 mypy-extensions==1.0.0 myst-nb==1.1.1 myst-parser==3.0.1 @@ -128,7 +128,7 @@ notebook-shim==0.2.4 numba==0.60.0 numpy==1.26.4 opt-einsum==3.3.0 -optree==0.11.0 +optree==0.12.1 overrides==7.7.0 packaging==24.1 pandas==2.2.2 @@ -141,21 +141,21 @@ phasespace==1.10.3 pillow==10.4.0 platformdirs==4.2.2 pluggy==1.5.0 -pre-commit==3.7.1 +pre-commit==3.8.0 prometheus-client==0.20.0 prompt-toolkit==3.0.47 -protobuf==4.25.3 +protobuf==4.25.4 psutil==6.0.0 ptyprocess==0.7.0 -pure-eval==0.2.2 +pure-eval==0.2.3 py-cpuinfo==9.0.0 -pyarrow==16.1.0 +pyarrow==17.0.0 pycparser==2.22 pydata-sphinx-theme==0.15.4 pygments==2.18.0 pyparsing==3.1.2 pyproject-api==1.7.1 -pytest==8.2.2 +pytest==8.3.2 pytest-benchmark==4.0.0 pytest-cov==5.0.0 pytest-mock==3.14.0 @@ -164,12 +164,12 @@ python-constraint2==2.0.0b5 python-dateutil==2.9.0.post0 python-json-logger==2.0.7 python-lsp-jsonrpc==1.1.2 -python-lsp-ruff==2.2.1 +python-lsp-ruff==2.2.2 python-lsp-server==1.11.0 pytoolconfig==1.3.1 pytz==2024.1 pyyaml==6.0.1 -pyzmq==26.0.3 +pyzmq==26.1.0 qrules==0.10.2 qtconsole==5.5.2 qtpy==2.4.1 @@ -179,8 +179,8 @@ rfc3339-validator==0.1.4 rfc3986-validator==0.1.1 rich==13.7.1 rope==1.13.0 -rpds-py==0.18.1 -ruff==0.5.0 +rpds-py==0.19.1 +ruff==0.5.6 scipy==1.14.0 send2trash==1.8.3 six==1.16.0 @@ -188,31 +188,31 @@ smmap==5.0.1 sniffio==1.3.1 snowballstemmer==2.2.0 soupsieve==2.5 -sphinx==7.3.7 +sphinx==7.4.7 sphinx-api-relink==0.0.9 sphinx-autobuild==2024.4.16 sphinx-book-theme==1.1.3 sphinx-codeautolink==0.15.2 sphinx-comments==0.0.3 sphinx-copybutton==0.5.2 -sphinx-design==0.6.0 +sphinx-design==0.6.1 sphinx-thebe==0.3.1 sphinx-togglebutton==0.3.2 -sphinxcontrib-applehelp==1.0.8 -sphinxcontrib-devhelp==1.0.6 -sphinxcontrib-htmlhelp==2.0.5 +sphinxcontrib-applehelp==2.0.0 +sphinxcontrib-devhelp==2.0.0 +sphinxcontrib-htmlhelp==2.1.0 sphinxcontrib-jsmath==1.0.1 -sphinxcontrib-qthelp==1.0.7 -sphinxcontrib-serializinghtml==1.1.10 +sphinxcontrib-qthelp==2.0.0 +sphinxcontrib-serializinghtml==2.0.0 sphobjinv==2.3.1.1 sqlalchemy==2.0.31 stack-data==0.6.3 -starlette==0.37.2 -sympy==1.12.1 +starlette==0.38.2 +sympy==1.13.1 tabulate==0.9.0 -tensorboard==2.16.2 +tensorboard==2.17.0 tensorboard-data-server==0.7.2 -tensorflow==2.16.2 +tensorflow==2.17.0 tensorflow-io-gcs-filesystem==0.37.1 tensorflow-probability==0.24.0 termcolor==2.4.0 @@ -220,21 +220,21 @@ terminado==0.18.1 tinycss2==1.3.0 tomli==2.0.1 tornado==6.4.1 -tox==4.15.1 -tqdm==4.66.4 +tox==4.16.0 +tqdm==4.66.5 traitlets==5.14.3 types-protobuf==5.27.0.20240626 types-python-dateutil==2.9.0.20240316 -types-pyyaml==6.0.12.20240311 -types-requests==2.32.0.20240622 -types-tensorflow==2.16.0.20240627 +types-pyyaml==6.0.12.20240724 +types-requests==2.32.0.20240712 +types-tensorflow==2.16.0.20240804 types-tqdm==4.66.0.20240417 typing-extensions==4.12.2 tzdata==2024.1 ujson==5.10.0 uri-template==1.3.0 urllib3==2.2.2 -uvicorn==0.30.1 +uvicorn==0.30.5 virtualenv==20.26.3 watchfiles==0.22.0 wcwidth==0.2.13 @@ -243,7 +243,7 @@ webencodings==0.5.1 websocket-client==1.8.0 websockets==12.0 werkzeug==3.0.3 -wheel==0.43.0 +wheel==0.44.0 widgetsnbextension==4.0.11 wrapt==1.16.0 zipp==3.19.2 diff --git a/.constraints/py3.11.txt b/.constraints/py3.11.txt index de814749..10787627 100644 --- a/.constraints/py3.11.txt +++ b/.constraints/py3.11.txt @@ -11,14 +11,14 @@ arrow==1.3.0 asttokens==2.4.1 astunparse==1.6.3 async-lru==2.0.4 -attrs==23.2.0 +attrs==24.1.0 babel==2.15.0 beautifulsoup4==4.12.3 -black==24.4.2 +black==24.8.0 bleach==6.1.0 -cachetools==5.3.3 +cachetools==5.4.0 cattrs==23.2.3 -certifi==2024.6.2 +certifi==2024.7.4 cffi==1.16.0 cfgv==3.4.0 chardet==5.2.0 @@ -28,9 +28,9 @@ cloudpickle==3.0.0 colorama==0.4.6 comm==0.2.2 contourpy==1.2.1 -coverage==7.5.4 +coverage==7.6.1 cycler==0.12.1 -debugpy==1.8.2 +debugpy==1.8.3 decorator==5.1.1 defusedxml==0.7.1 distlib==0.3.8 @@ -42,7 +42,7 @@ executing==2.0.1 fastjsonschema==2.20.0 filelock==3.15.4 flatbuffers==24.3.25 -fonttools==4.53.0 +fonttools==4.53.1 fqdn==1.5.1 gast==0.6.0 gitdb==4.0.11 @@ -50,17 +50,17 @@ gitpython==3.1.43 google-pasta==0.2.0 graphviz==0.20.3 greenlet==3.0.3 -grpcio==1.64.1 +grpcio==1.65.4 h11==0.14.0 h5py==3.11.0 hepunits==2.3.4 httpcore==1.0.5 httpx==0.27.0 -identify==2.5.36 +identify==2.6.0 idna==3.7 imagesize==1.4.1 -iminuit==2.26.0 -importlib-metadata==8.0.0 +iminuit==2.28.0 +importlib-metadata==8.2.0 iniconfig==2.0.0 ipykernel==6.29.5 ipympl==0.9.4 @@ -69,13 +69,13 @@ ipython-genutils==0.2.0 ipywidgets==8.1.3 isoduration==20.11.0 isort==5.13.2 -jax==0.4.30 -jaxlib==0.4.30 +jax==0.4.31 +jaxlib==0.4.31 jedi==0.19.1 jinja2==3.1.4 json5==0.9.25 jsonpointer==3.0.0 -jsonschema==4.22.0 +jsonschema==4.23.0 jsonschema-specifications==2023.12.1 jupyter==1.0.0 jupyter-cache==1.0.0 @@ -84,16 +84,16 @@ jupyter-console==6.6.3 jupyter-core==5.7.2 jupyter-events==0.10.0 jupyter-lsp==2.2.5 -jupyter-server==2.14.1 +jupyter-server==2.14.2 jupyter-server-mathjax==0.2.6 jupyter-server-terminals==0.5.3 -jupyterlab==4.2.3 -jupyterlab-code-formatter==2.2.1 +jupyterlab==4.2.4 +jupyterlab-code-formatter==3.0.0 jupyterlab-git==0.50.1 jupyterlab-lsp==5.1.0 jupyterlab-myst==2.4.2 jupyterlab-pygments==0.3.0 -jupyterlab-server==2.27.2 +jupyterlab-server==2.27.3 jupyterlab-widgets==3.0.11 keras==3.4.1 kiwisolver==1.4.5 @@ -108,9 +108,9 @@ matplotlib-inline==0.1.7 mdit-py-plugins==0.4.1 mdurl==0.1.2 mistune==3.0.2 -ml-dtypes==0.3.2 +ml-dtypes==0.4.0 mpmath==1.3.0 -mypy==1.10.1 +mypy==1.11.1 mypy-extensions==1.0.0 myst-nb==1.1.1 myst-parser==3.0.1 @@ -127,7 +127,7 @@ notebook-shim==0.2.4 numba==0.60.0 numpy==1.26.4 opt-einsum==3.3.0 -optree==0.11.0 +optree==0.12.1 overrides==7.7.0 packaging==24.1 pandas==2.2.2 @@ -140,21 +140,21 @@ phasespace==1.10.3 pillow==10.4.0 platformdirs==4.2.2 pluggy==1.5.0 -pre-commit==3.7.1 +pre-commit==3.8.0 prometheus-client==0.20.0 prompt-toolkit==3.0.47 -protobuf==4.25.3 +protobuf==4.25.4 psutil==6.0.0 ptyprocess==0.7.0 -pure-eval==0.2.2 +pure-eval==0.2.3 py-cpuinfo==9.0.0 -pyarrow==16.1.0 +pyarrow==17.0.0 pycparser==2.22 pydata-sphinx-theme==0.15.4 pygments==2.18.0 pyparsing==3.1.2 pyproject-api==1.7.1 -pytest==8.2.2 +pytest==8.3.2 pytest-benchmark==4.0.0 pytest-cov==5.0.0 pytest-mock==3.14.0 @@ -163,12 +163,12 @@ python-constraint2==2.0.0b5 python-dateutil==2.9.0.post0 python-json-logger==2.0.7 python-lsp-jsonrpc==1.1.2 -python-lsp-ruff==2.2.1 +python-lsp-ruff==2.2.2 python-lsp-server==1.11.0 pytoolconfig==1.3.1 pytz==2024.1 pyyaml==6.0.1 -pyzmq==26.0.3 +pyzmq==26.1.0 qrules==0.10.2 qtconsole==5.5.2 qtpy==2.4.1 @@ -178,8 +178,8 @@ rfc3339-validator==0.1.4 rfc3986-validator==0.1.1 rich==13.7.1 rope==1.13.0 -rpds-py==0.18.1 -ruff==0.5.0 +rpds-py==0.19.1 +ruff==0.5.6 scipy==1.14.0 send2trash==1.8.3 six==1.16.0 @@ -187,52 +187,52 @@ smmap==5.0.1 sniffio==1.3.1 snowballstemmer==2.2.0 soupsieve==2.5 -sphinx==7.3.7 +sphinx==7.4.7 sphinx-api-relink==0.0.9 sphinx-autobuild==2024.4.16 sphinx-book-theme==1.1.3 sphinx-codeautolink==0.15.2 sphinx-comments==0.0.3 sphinx-copybutton==0.5.2 -sphinx-design==0.6.0 +sphinx-design==0.6.1 sphinx-thebe==0.3.1 sphinx-togglebutton==0.3.2 -sphinxcontrib-applehelp==1.0.8 -sphinxcontrib-devhelp==1.0.6 -sphinxcontrib-htmlhelp==2.0.5 +sphinxcontrib-applehelp==2.0.0 +sphinxcontrib-devhelp==2.0.0 +sphinxcontrib-htmlhelp==2.1.0 sphinxcontrib-jsmath==1.0.1 -sphinxcontrib-qthelp==1.0.7 -sphinxcontrib-serializinghtml==1.1.10 +sphinxcontrib-qthelp==2.0.0 +sphinxcontrib-serializinghtml==2.0.0 sphobjinv==2.3.1.1 sqlalchemy==2.0.31 stack-data==0.6.3 -starlette==0.37.2 -sympy==1.12.1 +starlette==0.38.2 +sympy==1.13.1 tabulate==0.9.0 -tensorboard==2.16.2 +tensorboard==2.17.0 tensorboard-data-server==0.7.2 -tensorflow==2.16.2 +tensorflow==2.17.0 tensorflow-io-gcs-filesystem==0.37.1 tensorflow-probability==0.24.0 termcolor==2.4.0 terminado==0.18.1 tinycss2==1.3.0 tornado==6.4.1 -tox==4.15.1 -tqdm==4.66.4 +tox==4.16.0 +tqdm==4.66.5 traitlets==5.14.3 types-protobuf==5.27.0.20240626 types-python-dateutil==2.9.0.20240316 -types-pyyaml==6.0.12.20240311 -types-requests==2.32.0.20240622 -types-tensorflow==2.16.0.20240627 +types-pyyaml==6.0.12.20240724 +types-requests==2.32.0.20240712 +types-tensorflow==2.16.0.20240804 types-tqdm==4.66.0.20240417 typing-extensions==4.12.2 tzdata==2024.1 ujson==5.10.0 uri-template==1.3.0 urllib3==2.2.2 -uvicorn==0.30.1 +uvicorn==0.30.5 virtualenv==20.26.3 watchfiles==0.22.0 wcwidth==0.2.13 @@ -241,7 +241,7 @@ webencodings==0.5.1 websocket-client==1.8.0 websockets==12.0 werkzeug==3.0.3 -wheel==0.43.0 +wheel==0.44.0 widgetsnbextension==4.0.11 wrapt==1.16.0 zipp==3.19.2 diff --git a/.constraints/py3.12.txt b/.constraints/py3.12.txt index 6f4d087b..3e4dd951 100644 --- a/.constraints/py3.12.txt +++ b/.constraints/py3.12.txt @@ -11,14 +11,14 @@ arrow==1.3.0 asttokens==2.4.1 astunparse==1.6.3 async-lru==2.0.4 -attrs==23.2.0 +attrs==24.1.0 babel==2.15.0 beautifulsoup4==4.12.3 -black==24.4.2 +black==24.8.0 bleach==6.1.0 -cachetools==5.3.3 +cachetools==5.4.0 cattrs==23.2.3 -certifi==2024.6.2 +certifi==2024.7.4 cffi==1.16.0 cfgv==3.4.0 chardet==5.2.0 @@ -28,9 +28,9 @@ cloudpickle==3.0.0 colorama==0.4.6 comm==0.2.2 contourpy==1.2.1 -coverage==7.5.4 +coverage==7.6.1 cycler==0.12.1 -debugpy==1.8.2 +debugpy==1.8.3 decorator==5.1.1 defusedxml==0.7.1 distlib==0.3.8 @@ -42,7 +42,7 @@ executing==2.0.1 fastjsonschema==2.20.0 filelock==3.15.4 flatbuffers==24.3.25 -fonttools==4.53.0 +fonttools==4.53.1 fqdn==1.5.1 gast==0.6.0 gitdb==4.0.11 @@ -50,17 +50,17 @@ gitpython==3.1.43 google-pasta==0.2.0 graphviz==0.20.3 greenlet==3.0.3 -grpcio==1.64.1 +grpcio==1.65.4 h11==0.14.0 h5py==3.11.0 hepunits==2.3.4 httpcore==1.0.5 httpx==0.27.0 -identify==2.5.36 +identify==2.6.0 idna==3.7 imagesize==1.4.1 -iminuit==2.26.0 -importlib-metadata==8.0.0 +iminuit==2.28.0 +importlib-metadata==8.2.0 iniconfig==2.0.0 ipykernel==6.29.5 ipympl==0.9.4 @@ -69,13 +69,13 @@ ipython-genutils==0.2.0 ipywidgets==8.1.3 isoduration==20.11.0 isort==5.13.2 -jax==0.4.30 -jaxlib==0.4.30 +jax==0.4.31 +jaxlib==0.4.31 jedi==0.19.1 jinja2==3.1.4 json5==0.9.25 jsonpointer==3.0.0 -jsonschema==4.22.0 +jsonschema==4.23.0 jsonschema-specifications==2023.12.1 jupyter==1.0.0 jupyter-cache==1.0.0 @@ -84,16 +84,16 @@ jupyter-console==6.6.3 jupyter-core==5.7.2 jupyter-events==0.10.0 jupyter-lsp==2.2.5 -jupyter-server==2.14.1 +jupyter-server==2.14.2 jupyter-server-mathjax==0.2.6 jupyter-server-terminals==0.5.3 -jupyterlab==4.2.3 -jupyterlab-code-formatter==2.2.1 +jupyterlab==4.2.4 +jupyterlab-code-formatter==3.0.0 jupyterlab-git==0.50.1 jupyterlab-lsp==5.1.0 jupyterlab-myst==2.4.2 jupyterlab-pygments==0.3.0 -jupyterlab-server==2.27.2 +jupyterlab-server==2.27.3 jupyterlab-widgets==3.0.11 keras==3.4.1 kiwisolver==1.4.5 @@ -108,9 +108,9 @@ matplotlib-inline==0.1.7 mdit-py-plugins==0.4.1 mdurl==0.1.2 mistune==3.0.2 -ml-dtypes==0.3.2 +ml-dtypes==0.4.0 mpmath==1.3.0 -mypy==1.10.1 +mypy==1.11.1 mypy-extensions==1.0.0 myst-nb==1.1.1 myst-parser==3.0.1 @@ -127,7 +127,7 @@ notebook-shim==0.2.4 numba==0.60.0 numpy==1.26.4 opt-einsum==3.3.0 -optree==0.11.0 +optree==0.12.1 overrides==7.7.0 packaging==24.1 pandas==2.2.2 @@ -140,21 +140,21 @@ phasespace==1.10.3 pillow==10.4.0 platformdirs==4.2.2 pluggy==1.5.0 -pre-commit==3.7.1 +pre-commit==3.8.0 prometheus-client==0.20.0 prompt-toolkit==3.0.47 -protobuf==4.25.3 +protobuf==4.25.4 psutil==6.0.0 ptyprocess==0.7.0 -pure-eval==0.2.2 +pure-eval==0.2.3 py-cpuinfo==9.0.0 -pyarrow==16.1.0 +pyarrow==17.0.0 pycparser==2.22 pydata-sphinx-theme==0.15.4 pygments==2.18.0 pyparsing==3.1.2 pyproject-api==1.7.1 -pytest==8.2.2 +pytest==8.3.2 pytest-benchmark==4.0.0 pytest-cov==5.0.0 pytest-mock==3.14.0 @@ -163,12 +163,12 @@ python-constraint2==2.0.0b5 python-dateutil==2.9.0.post0 python-json-logger==2.0.7 python-lsp-jsonrpc==1.1.2 -python-lsp-ruff==2.2.1 +python-lsp-ruff==2.2.2 python-lsp-server==1.11.0 pytoolconfig==1.3.1 pytz==2024.1 pyyaml==6.0.1 -pyzmq==26.0.3 +pyzmq==26.1.0 qrules==0.10.2 qtconsole==5.5.2 qtpy==2.4.1 @@ -178,8 +178,8 @@ rfc3339-validator==0.1.4 rfc3986-validator==0.1.1 rich==13.7.1 rope==1.13.0 -rpds-py==0.18.1 -ruff==0.5.0 +rpds-py==0.19.1 +ruff==0.5.6 scipy==1.14.0 send2trash==1.8.3 six==1.16.0 @@ -187,51 +187,51 @@ smmap==5.0.1 sniffio==1.3.1 snowballstemmer==2.2.0 soupsieve==2.5 -sphinx==7.3.7 +sphinx==7.4.7 sphinx-api-relink==0.0.9 sphinx-autobuild==2024.4.16 sphinx-book-theme==1.1.3 sphinx-codeautolink==0.15.2 sphinx-comments==0.0.3 sphinx-copybutton==0.5.2 -sphinx-design==0.6.0 +sphinx-design==0.6.1 sphinx-thebe==0.3.1 sphinx-togglebutton==0.3.2 -sphinxcontrib-applehelp==1.0.8 -sphinxcontrib-devhelp==1.0.6 -sphinxcontrib-htmlhelp==2.0.5 +sphinxcontrib-applehelp==2.0.0 +sphinxcontrib-devhelp==2.0.0 +sphinxcontrib-htmlhelp==2.1.0 sphinxcontrib-jsmath==1.0.1 -sphinxcontrib-qthelp==1.0.7 -sphinxcontrib-serializinghtml==1.1.10 +sphinxcontrib-qthelp==2.0.0 +sphinxcontrib-serializinghtml==2.0.0 sphobjinv==2.3.1.1 sqlalchemy==2.0.31 stack-data==0.6.3 -starlette==0.37.2 -sympy==1.12.1 +starlette==0.38.2 +sympy==1.13.1 tabulate==0.9.0 -tensorboard==2.16.2 +tensorboard==2.17.0 tensorboard-data-server==0.7.2 -tensorflow==2.16.2 +tensorflow==2.17.0 tensorflow-probability==0.24.0 termcolor==2.4.0 terminado==0.18.1 tinycss2==1.3.0 tornado==6.4.1 -tox==4.15.1 -tqdm==4.66.4 +tox==4.16.0 +tqdm==4.66.5 traitlets==5.14.3 types-protobuf==5.27.0.20240626 types-python-dateutil==2.9.0.20240316 -types-pyyaml==6.0.12.20240311 -types-requests==2.32.0.20240622 -types-tensorflow==2.16.0.20240627 +types-pyyaml==6.0.12.20240724 +types-requests==2.32.0.20240712 +types-tensorflow==2.16.0.20240804 types-tqdm==4.66.0.20240417 typing-extensions==4.12.2 tzdata==2024.1 ujson==5.10.0 uri-template==1.3.0 urllib3==2.2.2 -uvicorn==0.30.1 +uvicorn==0.30.5 virtualenv==20.26.3 watchfiles==0.22.0 wcwidth==0.2.13 @@ -240,7 +240,7 @@ webencodings==0.5.1 websocket-client==1.8.0 websockets==12.0 werkzeug==3.0.3 -wheel==0.43.0 +wheel==0.44.0 widgetsnbextension==4.0.11 wrapt==1.16.0 zipp==3.19.2 diff --git a/.constraints/py3.8.txt b/.constraints/py3.8.txt index 8eda72f9..a29166dd 100644 --- a/.constraints/py3.8.txt +++ b/.constraints/py3.8.txt @@ -11,15 +11,15 @@ arrow==1.3.0 asttokens==2.4.1 astunparse==1.6.3 async-lru==2.0.4 -attrs==23.2.0 +attrs==24.1.0 babel==2.15.0 backcall==0.2.0 beautifulsoup4==4.12.3 -black==24.4.2 +black==24.8.0 bleach==6.1.0 -cachetools==5.3.3 +cachetools==5.4.0 cattrs==23.2.3 -certifi==2024.6.2 +certifi==2024.7.4 cffi==1.16.0 cfgv==3.4.0 chardet==5.2.0 @@ -29,42 +29,42 @@ cloudpickle==3.0.0 colorama==0.4.6 comm==0.2.2 contourpy==1.1.1 -coverage==7.5.4 +coverage==7.6.1 cycler==0.12.1 -debugpy==1.8.2 +debugpy==1.8.3 decorator==5.1.1 defusedxml==0.7.1 distlib==0.3.8 dm-tree==0.1.8 docstring-to-markdown==0.15 docutils==0.19 -exceptiongroup==1.2.1 +exceptiongroup==1.2.2 execnet==2.1.1 executing==2.0.1 fastjsonschema==2.20.0 filelock==3.15.4 flatbuffers==24.3.25 -fonttools==4.53.0 +fonttools==4.53.1 fqdn==1.5.1 gast==0.4.0 gitdb==4.0.11 gitpython==3.1.43 -google-auth==2.31.0 +google-auth==2.32.0 google-auth-oauthlib==0.4.6 google-pasta==0.2.0 graphviz==0.20.3 greenlet==3.0.3 -grpcio==1.64.1 +grpcio==1.65.4 h11==0.14.0 h5py==3.11.0 hepunits==2.3.4 httpcore==1.0.5 httpx==0.27.0 -identify==2.5.36 +identify==2.6.0 idna==3.7 imagesize==1.4.1 -iminuit==2.26.0 -importlib-metadata==8.0.0 +iminuit==2.27.0 +importlib-metadata==8.2.0 importlib-resources==6.4.0 iniconfig==2.0.0 ipykernel==6.29.5 @@ -80,7 +80,7 @@ jedi==0.19.1 jinja2==3.1.4 json5==0.9.25 jsonpointer==3.0.0 -jsonschema==4.22.0 +jsonschema==4.23.0 jsonschema-specifications==2023.12.1 jupyter==1.0.0 jupyter-cache==0.6.1 @@ -89,16 +89,16 @@ jupyter-console==6.6.3 jupyter-core==5.7.2 jupyter-events==0.10.0 jupyter-lsp==2.2.5 -jupyter-server==2.14.1 +jupyter-server==2.14.2 jupyter-server-mathjax==0.2.6 jupyter-server-terminals==0.5.3 -jupyterlab==4.2.3 -jupyterlab-code-formatter==2.2.1 +jupyterlab==4.2.4 +jupyterlab-code-formatter==3.0.0 jupyterlab-git==0.50.1 jupyterlab-lsp==5.1.0 jupyterlab-myst==2.4.2 jupyterlab-pygments==0.3.0 -jupyterlab-server==2.27.2 +jupyterlab-server==2.27.3 jupyterlab-widgets==3.0.11 keras==2.11.0 kiwisolver==1.4.5 @@ -116,7 +116,7 @@ mdurl==0.1.2 mistune==3.0.2 ml-dtypes==0.2.0 mpmath==1.3.0 -mypy==1.10.1 +mypy==1.11.1 mypy-extensions==1.0.0 myst-nb==0.17.2 myst-parser==0.18.1 @@ -153,9 +153,9 @@ prompt-toolkit==3.0.47 protobuf==3.19.6 psutil==6.0.0 ptyprocess==0.7.0 -pure-eval==0.2.2 +pure-eval==0.2.3 py-cpuinfo==9.0.0 -pyarrow==16.1.0 +pyarrow==17.0.0 pyasn1==0.6.0 pyasn1-modules==0.4.0 pycparser==2.22 @@ -163,7 +163,7 @@ pydata-sphinx-theme==0.14.4 pygments==2.18.0 pyparsing==3.1.2 pyproject-api==1.7.1 -pytest==8.2.2 +pytest==8.3.2 pytest-benchmark==4.0.0 pytest-cov==5.0.0 pytest-mock==3.14.0 @@ -172,12 +172,12 @@ python-constraint2==2.0.0b5 python-dateutil==2.9.0.post0 python-json-logger==2.0.7 python-lsp-jsonrpc==1.1.2 -python-lsp-ruff==2.2.1 +python-lsp-ruff==2.2.2 python-lsp-server==1.11.0 pytoolconfig==1.3.1 pytz==2024.1 pyyaml==6.0.1 -pyzmq==26.0.3 +pyzmq==26.1.0 qrules==0.10.2 qtconsole==5.5.2 qtpy==2.4.1 @@ -187,9 +187,9 @@ requests-oauthlib==2.0.0 rfc3339-validator==0.1.4 rfc3986-validator==0.1.1 rope==1.13.0 -rpds-py==0.18.1 +rpds-py==0.19.1 rsa==4.9 -ruff==0.5.0 +ruff==0.5.6 scipy==1.10.1 send2trash==1.8.3 six==1.16.0 @@ -216,7 +216,7 @@ sphinxcontrib-serializinghtml==1.1.5 sphobjinv==2.3.1.1 sqlalchemy==2.0.31 stack-data==0.6.3 -sympy==1.12.1 +sympy==1.13.1 tabulate==0.9.0 tensorboard==2.11.2 tensorboard-data-server==0.6.1 @@ -230,14 +230,14 @@ terminado==0.18.1 tinycss2==1.3.0 tomli==2.0.1 tornado==6.4.1 -tox==4.15.1 -tqdm==4.66.4 +tox==4.16.0 +tqdm==4.66.5 traitlets==5.14.3 types-protobuf==5.27.0.20240626 types-python-dateutil==2.9.0.20240316 -types-pyyaml==6.0.12.20240311 -types-requests==2.32.0.20240622 -types-tensorflow==2.16.0.20240627 +types-pyyaml==6.0.12.20240724 +types-requests==2.32.0.20240712 +types-tensorflow==2.16.0.20240804 types-tqdm==4.66.0.20240417 typing-extensions==4.12.2 tzdata==2024.1 @@ -250,7 +250,7 @@ webcolors==24.6.0 webencodings==0.5.1 websocket-client==1.8.0 werkzeug==3.0.3 -wheel==0.43.0 +wheel==0.44.0 widgetsnbextension==4.0.11 wrapt==1.16.0 zipp==3.19.2 diff --git a/.constraints/py3.9.txt b/.constraints/py3.9.txt index 2b4e52cc..7d8b5264 100644 --- a/.constraints/py3.9.txt +++ b/.constraints/py3.9.txt @@ -11,14 +11,14 @@ arrow==1.3.0 asttokens==2.4.1 astunparse==1.6.3 async-lru==2.0.4 -attrs==23.2.0 +attrs==24.1.0 babel==2.15.0 beautifulsoup4==4.12.3 -black==24.4.2 +black==24.8.0 bleach==6.1.0 -cachetools==5.3.3 +cachetools==5.4.0 cattrs==23.2.3 -certifi==2024.6.2 +certifi==2024.7.4 cffi==1.16.0 cfgv==3.4.0 chardet==5.2.0 @@ -28,22 +28,22 @@ cloudpickle==3.0.0 colorama==0.4.6 comm==0.2.2 contourpy==1.2.1 -coverage==7.5.4 +coverage==7.6.1 cycler==0.12.1 -debugpy==1.8.2 +debugpy==1.8.3 decorator==5.1.1 defusedxml==0.7.1 distlib==0.3.8 dm-tree==0.1.8 docstring-to-markdown==0.15 docutils==0.21.2 -exceptiongroup==1.2.1 +exceptiongroup==1.2.2 execnet==2.1.1 executing==2.0.1 fastjsonschema==2.20.0 filelock==3.15.4 flatbuffers==24.3.25 -fonttools==4.53.0 +fonttools==4.53.1 fqdn==1.5.1 gast==0.6.0 gitdb==4.0.11 @@ -51,17 +51,17 @@ gitpython==3.1.43 google-pasta==0.2.0 graphviz==0.20.3 greenlet==3.0.3 -grpcio==1.64.1 +grpcio==1.65.4 h11==0.14.0 h5py==3.11.0 hepunits==2.3.4 httpcore==1.0.5 httpx==0.27.0 -identify==2.5.36 +identify==2.6.0 idna==3.7 imagesize==1.4.1 -iminuit==2.26.0 -importlib-metadata==8.0.0 +iminuit==2.28.0 +importlib-metadata==8.2.0 importlib-resources==6.4.0 iniconfig==2.0.0 ipykernel==6.29.5 @@ -77,7 +77,7 @@ jedi==0.19.1 jinja2==3.1.4 json5==0.9.25 jsonpointer==3.0.0 -jsonschema==4.22.0 +jsonschema==4.23.0 jsonschema-specifications==2023.12.1 jupyter==1.0.0 jupyter-cache==1.0.0 @@ -86,16 +86,16 @@ jupyter-console==6.6.3 jupyter-core==5.7.2 jupyter-events==0.10.0 jupyter-lsp==2.2.5 -jupyter-server==2.14.1 +jupyter-server==2.14.2 jupyter-server-mathjax==0.2.6 jupyter-server-terminals==0.5.3 -jupyterlab==4.2.3 -jupyterlab-code-formatter==2.2.1 +jupyterlab==4.2.4 +jupyterlab-code-formatter==3.0.0 jupyterlab-git==0.50.1 jupyterlab-lsp==5.1.0 jupyterlab-myst==2.4.2 jupyterlab-pygments==0.3.0 -jupyterlab-server==2.27.2 +jupyterlab-server==2.27.3 jupyterlab-widgets==3.0.11 keras==3.4.1 kiwisolver==1.4.5 @@ -110,9 +110,9 @@ matplotlib-inline==0.1.7 mdit-py-plugins==0.4.1 mdurl==0.1.2 mistune==3.0.2 -ml-dtypes==0.3.2 +ml-dtypes==0.4.0 mpmath==1.3.0 -mypy==1.10.1 +mypy==1.11.1 mypy-extensions==1.0.0 myst-nb==1.1.1 myst-parser==3.0.1 @@ -129,7 +129,7 @@ notebook-shim==0.2.4 numba==0.60.0 numpy==1.26.4 opt-einsum==3.3.0 -optree==0.11.0 +optree==0.12.1 overrides==7.7.0 packaging==24.1 pandas==2.2.2 @@ -142,21 +142,21 @@ phasespace==1.10.3 pillow==10.4.0 platformdirs==4.2.2 pluggy==1.5.0 -pre-commit==3.7.1 +pre-commit==3.8.0 prometheus-client==0.20.0 prompt-toolkit==3.0.47 -protobuf==4.25.3 +protobuf==4.25.4 psutil==6.0.0 ptyprocess==0.7.0 -pure-eval==0.2.2 +pure-eval==0.2.3 py-cpuinfo==9.0.0 -pyarrow==16.1.0 +pyarrow==17.0.0 pycparser==2.22 pydata-sphinx-theme==0.15.4 pygments==2.18.0 pyparsing==3.1.2 pyproject-api==1.7.1 -pytest==8.2.2 +pytest==8.3.2 pytest-benchmark==4.0.0 pytest-cov==5.0.0 pytest-mock==3.14.0 @@ -165,12 +165,12 @@ python-constraint2==2.0.0b5 python-dateutil==2.9.0.post0 python-json-logger==2.0.7 python-lsp-jsonrpc==1.1.2 -python-lsp-ruff==2.2.1 +python-lsp-ruff==2.2.2 python-lsp-server==1.11.0 pytoolconfig==1.3.1 pytz==2024.1 pyyaml==6.0.1 -pyzmq==26.0.3 +pyzmq==26.1.0 qrules==0.10.2 qtconsole==5.5.2 qtpy==2.4.1 @@ -180,8 +180,8 @@ rfc3339-validator==0.1.4 rfc3986-validator==0.1.1 rich==13.7.1 rope==1.13.0 -rpds-py==0.18.1 -ruff==0.5.0 +rpds-py==0.19.1 +ruff==0.5.6 scipy==1.13.1 send2trash==1.8.3 six==1.16.0 @@ -189,31 +189,31 @@ smmap==5.0.1 sniffio==1.3.1 snowballstemmer==2.2.0 soupsieve==2.5 -sphinx==7.3.7 +sphinx==7.4.7 sphinx-api-relink==0.0.9 sphinx-autobuild==2024.4.16 sphinx-book-theme==1.1.3 sphinx-codeautolink==0.15.2 sphinx-comments==0.0.3 sphinx-copybutton==0.5.2 -sphinx-design==0.6.0 +sphinx-design==0.6.1 sphinx-thebe==0.3.1 sphinx-togglebutton==0.3.2 -sphinxcontrib-applehelp==1.0.8 -sphinxcontrib-devhelp==1.0.6 -sphinxcontrib-htmlhelp==2.0.5 +sphinxcontrib-applehelp==2.0.0 +sphinxcontrib-devhelp==2.0.0 +sphinxcontrib-htmlhelp==2.1.0 sphinxcontrib-jsmath==1.0.1 -sphinxcontrib-qthelp==1.0.7 -sphinxcontrib-serializinghtml==1.1.10 +sphinxcontrib-qthelp==2.0.0 +sphinxcontrib-serializinghtml==2.0.0 sphobjinv==2.3.1.1 sqlalchemy==2.0.31 stack-data==0.6.3 -starlette==0.37.2 -sympy==1.12.1 +starlette==0.38.2 +sympy==1.13.1 tabulate==0.9.0 -tensorboard==2.16.2 +tensorboard==2.17.0 tensorboard-data-server==0.7.2 -tensorflow==2.16.2 +tensorflow==2.17.0 tensorflow-io-gcs-filesystem==0.37.1 tensorflow-probability==0.24.0 termcolor==2.4.0 @@ -221,21 +221,21 @@ terminado==0.18.1 tinycss2==1.3.0 tomli==2.0.1 tornado==6.4.1 -tox==4.15.1 -tqdm==4.66.4 +tox==4.16.0 +tqdm==4.66.5 traitlets==5.14.3 types-protobuf==5.27.0.20240626 types-python-dateutil==2.9.0.20240316 -types-pyyaml==6.0.12.20240311 -types-requests==2.32.0.20240622 -types-tensorflow==2.16.0.20240627 +types-pyyaml==6.0.12.20240724 +types-requests==2.32.0.20240712 +types-tensorflow==2.16.0.20240804 types-tqdm==4.66.0.20240417 typing-extensions==4.12.2 tzdata==2024.1 ujson==5.10.0 uri-template==1.3.0 urllib3==2.2.2 -uvicorn==0.30.1 +uvicorn==0.30.5 virtualenv==20.26.3 watchfiles==0.22.0 wcwidth==0.2.13 @@ -244,7 +244,7 @@ webencodings==0.5.1 websocket-client==1.8.0 websockets==12.0 werkzeug==3.0.3 -wheel==0.43.0 +wheel==0.44.0 widgetsnbextension==4.0.11 wrapt==1.16.0 zipp==3.19.2 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index de815122..f38bca8d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -40,7 +40,7 @@ repos: metadata.vscode - repo: https://github.com/ComPWA/policy - rev: 0.3.9 + rev: 0.3.11 hooks: - id: check-dev-files args: @@ -60,7 +60,7 @@ repos: - --extras-require=doc,jax,pwa,viz - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.5.0 + rev: v0.5.6 hooks: - id: ruff args: [--fix] @@ -113,7 +113,7 @@ repos: - --in-place - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.28.6 + rev: 0.29.1 hooks: - id: check-jsonschema name: Check CITATION.cff @@ -126,7 +126,7 @@ repos: pass_filenames: false - repo: https://github.com/streetsidesoftware/cspell-cli - rev: v8.9.0 + rev: v8.13.1 hooks: - id: cspell @@ -152,6 +152,6 @@ repos: - python - repo: https://github.com/ComPWA/mirrors-pyright - rev: v1.1.369 + rev: v1.1.374 hooks: - id: pyright From ea0ff0a839945d220f7263b0d5ec45bc0fcd7a0a Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 5 Aug 2024 09:54:54 +0000 Subject: [PATCH 06/18] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- docs/amplitude-analysis.ipynb | 6 ------ docs/amplitude-analysis/analytic-continuation.ipynb | 6 ------ docs/usage.ipynb | 6 ------ docs/usage/basics.ipynb | 6 ------ docs/usage/binned-fit.ipynb | 6 ------ docs/usage/caching.ipynb | 6 ------ docs/usage/chi-squared.ipynb | 6 ------ docs/usage/faster-lambdify.ipynb | 6 ------ docs/usage/unbinned-fit.ipynb | 6 ------ pyproject.toml | 4 +--- src/tensorwaves/estimator.py | 4 ++-- 11 files changed, 3 insertions(+), 59 deletions(-) diff --git a/docs/amplitude-analysis.ipynb b/docs/amplitude-analysis.ipynb index 19847fad..b225baa6 100644 --- a/docs/amplitude-analysis.ipynb +++ b/docs/amplitude-analysis.ipynb @@ -10,9 +10,6 @@ "jupyter": { "source_hidden": true }, - "slideshow": { - "slide_type": "skip" - }, "tags": [ "remove-cell", "skip-execution" @@ -34,9 +31,6 @@ "jupyter": { "source_hidden": true }, - "slideshow": { - "slide_type": "skip" - }, "tags": [ "remove-cell" ] diff --git a/docs/amplitude-analysis/analytic-continuation.ipynb b/docs/amplitude-analysis/analytic-continuation.ipynb index 1f5f529f..6e194542 100644 --- a/docs/amplitude-analysis/analytic-continuation.ipynb +++ b/docs/amplitude-analysis/analytic-continuation.ipynb @@ -10,9 +10,6 @@ "jupyter": { "source_hidden": true }, - "slideshow": { - "slide_type": "skip" - }, "tags": [ "remove-cell", "skip-execution" @@ -34,9 +31,6 @@ "jupyter": { "source_hidden": true }, - "slideshow": { - "slide_type": "skip" - }, "tags": [ "remove-cell" ] diff --git a/docs/usage.ipynb b/docs/usage.ipynb index 5d22f6d1..44ff615d 100644 --- a/docs/usage.ipynb +++ b/docs/usage.ipynb @@ -10,9 +10,6 @@ "jupyter": { "source_hidden": true }, - "slideshow": { - "slide_type": "skip" - }, "tags": [ "remove-cell", "skip-execution" @@ -34,9 +31,6 @@ "jupyter": { "source_hidden": true }, - "slideshow": { - "slide_type": "skip" - }, "tags": [ "remove-cell" ] diff --git a/docs/usage/basics.ipynb b/docs/usage/basics.ipynb index 97452502..d5747c5e 100644 --- a/docs/usage/basics.ipynb +++ b/docs/usage/basics.ipynb @@ -10,9 +10,6 @@ "jupyter": { "source_hidden": true }, - "slideshow": { - "slide_type": "skip" - }, "tags": [ "remove-cell", "skip-execution" @@ -34,9 +31,6 @@ "jupyter": { "source_hidden": true }, - "slideshow": { - "slide_type": "skip" - }, "tags": [ "remove-cell" ] diff --git a/docs/usage/binned-fit.ipynb b/docs/usage/binned-fit.ipynb index 24cb1cd8..00d82d94 100644 --- a/docs/usage/binned-fit.ipynb +++ b/docs/usage/binned-fit.ipynb @@ -10,9 +10,6 @@ "jupyter": { "source_hidden": true }, - "slideshow": { - "slide_type": "skip" - }, "tags": [ "remove-cell", "skip-execution" @@ -34,9 +31,6 @@ "jupyter": { "source_hidden": true }, - "slideshow": { - "slide_type": "skip" - }, "tags": [ "remove-cell" ] diff --git a/docs/usage/caching.ipynb b/docs/usage/caching.ipynb index 25d94174..5a52ebf5 100644 --- a/docs/usage/caching.ipynb +++ b/docs/usage/caching.ipynb @@ -10,9 +10,6 @@ "jupyter": { "source_hidden": true }, - "slideshow": { - "slide_type": "skip" - }, "tags": [ "remove-cell", "skip-execution" @@ -34,9 +31,6 @@ "jupyter": { "source_hidden": true }, - "slideshow": { - "slide_type": "skip" - }, "tags": [ "remove-cell" ] diff --git a/docs/usage/chi-squared.ipynb b/docs/usage/chi-squared.ipynb index 36c259b0..bdf82b84 100644 --- a/docs/usage/chi-squared.ipynb +++ b/docs/usage/chi-squared.ipynb @@ -10,9 +10,6 @@ "jupyter": { "source_hidden": true }, - "slideshow": { - "slide_type": "skip" - }, "tags": [ "remove-cell", "skip-execution" @@ -34,9 +31,6 @@ "jupyter": { "source_hidden": true }, - "slideshow": { - "slide_type": "skip" - }, "tags": [ "remove-cell" ] diff --git a/docs/usage/faster-lambdify.ipynb b/docs/usage/faster-lambdify.ipynb index 42266d3e..af8e9db6 100644 --- a/docs/usage/faster-lambdify.ipynb +++ b/docs/usage/faster-lambdify.ipynb @@ -10,9 +10,6 @@ "jupyter": { "source_hidden": true }, - "slideshow": { - "slide_type": "skip" - }, "tags": [ "remove-cell", "skip-execution" @@ -34,9 +31,6 @@ "jupyter": { "source_hidden": true }, - "slideshow": { - "slide_type": "skip" - }, "tags": [ "remove-cell" ] diff --git a/docs/usage/unbinned-fit.ipynb b/docs/usage/unbinned-fit.ipynb index d5679fcc..145c2d69 100644 --- a/docs/usage/unbinned-fit.ipynb +++ b/docs/usage/unbinned-fit.ipynb @@ -10,9 +10,6 @@ "jupyter": { "source_hidden": true }, - "slideshow": { - "slide_type": "skip" - }, "tags": [ "remove-cell", "skip-execution" @@ -34,9 +31,6 @@ "jupyter": { "source_hidden": true }, - "slideshow": { - "slide_type": "skip" - }, "tags": [ "remove-cell" ] diff --git a/pyproject.toml b/pyproject.toml index 9bb6623f..6fc6265e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -90,10 +90,8 @@ jax = [ "jaxlib", ] jupyter = [ - "black", - "isort", "jupyterlab", - "jupyterlab-code-formatter", + "jupyterlab-code-formatter >=3.0.0", "jupyterlab-git", "jupyterlab-lsp", "jupyterlab-myst", diff --git a/src/tensorwaves/estimator.py b/src/tensorwaves/estimator.py index 5fe371c8..c9aad946 100644 --- a/src/tensorwaves/estimator.py +++ b/src/tensorwaves/estimator.py @@ -116,7 +116,7 @@ class ChiSquared(Estimator): .. seealso:: :doc:`/usage/chi-squared` """ - def __init__( # noqa: PLR0913 + def __init__( self, function: ParametrizedFunction[DataSample, np.ndarray], domain: DataSample, @@ -183,7 +183,7 @@ class UnbinnedNLL(Estimator): .. seealso:: :doc:`/usage/unbinned-fit` """ - def __init__( # noqa: PLR0913 + def __init__( self, function: ParametrizedFunction[DataSample, np.ndarray], data: DataSample, From 95ff7ab3993855c6eed11a57649ae1ae801c86ec Mon Sep 17 00:00:00 2001 From: GitHub Date: Mon, 5 Aug 2024 09:55:56 +0000 Subject: [PATCH 07/18] MAINT: update pip constraints and pre-commit --- .constraints/py3.10.txt | 3 --- .constraints/py3.11.txt | 3 --- .constraints/py3.12.txt | 3 --- .constraints/py3.8.txt | 3 --- .constraints/py3.9.txt | 3 --- 5 files changed, 15 deletions(-) diff --git a/.constraints/py3.10.txt b/.constraints/py3.10.txt index 8cc09c12..4db15e34 100644 --- a/.constraints/py3.10.txt +++ b/.constraints/py3.10.txt @@ -14,7 +14,6 @@ async-lru==2.0.4 attrs==24.1.0 babel==2.15.0 beautifulsoup4==4.12.3 -black==24.8.0 bleach==6.1.0 cachetools==5.4.0 cattrs==23.2.3 @@ -69,7 +68,6 @@ ipython==8.26.0 ipython-genutils==0.2.0 ipywidgets==8.1.3 isoduration==20.11.0 -isort==5.13.2 jax==0.4.31 jaxlib==0.4.31 jedi==0.19.1 @@ -135,7 +133,6 @@ pandas==2.2.2 pandocfilters==1.5.1 parso==0.8.4 particle==0.24.0 -pathspec==0.12.1 pexpect==4.9.0 phasespace==1.10.3 pillow==10.4.0 diff --git a/.constraints/py3.11.txt b/.constraints/py3.11.txt index 10787627..5c71203d 100644 --- a/.constraints/py3.11.txt +++ b/.constraints/py3.11.txt @@ -14,7 +14,6 @@ async-lru==2.0.4 attrs==24.1.0 babel==2.15.0 beautifulsoup4==4.12.3 -black==24.8.0 bleach==6.1.0 cachetools==5.4.0 cattrs==23.2.3 @@ -68,7 +67,6 @@ ipython==8.26.0 ipython-genutils==0.2.0 ipywidgets==8.1.3 isoduration==20.11.0 -isort==5.13.2 jax==0.4.31 jaxlib==0.4.31 jedi==0.19.1 @@ -134,7 +132,6 @@ pandas==2.2.2 pandocfilters==1.5.1 parso==0.8.4 particle==0.24.0 -pathspec==0.12.1 pexpect==4.9.0 phasespace==1.10.3 pillow==10.4.0 diff --git a/.constraints/py3.12.txt b/.constraints/py3.12.txt index 3e4dd951..1182b308 100644 --- a/.constraints/py3.12.txt +++ b/.constraints/py3.12.txt @@ -14,7 +14,6 @@ async-lru==2.0.4 attrs==24.1.0 babel==2.15.0 beautifulsoup4==4.12.3 -black==24.8.0 bleach==6.1.0 cachetools==5.4.0 cattrs==23.2.3 @@ -68,7 +67,6 @@ ipython==8.26.0 ipython-genutils==0.2.0 ipywidgets==8.1.3 isoduration==20.11.0 -isort==5.13.2 jax==0.4.31 jaxlib==0.4.31 jedi==0.19.1 @@ -134,7 +132,6 @@ pandas==2.2.2 pandocfilters==1.5.1 parso==0.8.4 particle==0.24.0 -pathspec==0.12.1 pexpect==4.9.0 phasespace==1.10.3 pillow==10.4.0 diff --git a/.constraints/py3.8.txt b/.constraints/py3.8.txt index a29166dd..c2dad70f 100644 --- a/.constraints/py3.8.txt +++ b/.constraints/py3.8.txt @@ -15,7 +15,6 @@ attrs==24.1.0 babel==2.15.0 backcall==0.2.0 beautifulsoup4==4.12.3 -black==24.8.0 bleach==6.1.0 cachetools==5.4.0 cattrs==23.2.3 @@ -73,7 +72,6 @@ ipython==8.12.3 ipython-genutils==0.2.0 ipywidgets==8.1.3 isoduration==20.11.0 -isort==5.13.2 jax==0.4.13 jaxlib==0.4.13 jedi==0.19.1 @@ -139,7 +137,6 @@ pandas==2.0.3 pandocfilters==1.5.1 parso==0.8.4 particle==0.24.0 -pathspec==0.12.1 pexpect==4.9.0 phasespace==1.9.0 pickleshare==0.7.5 diff --git a/.constraints/py3.9.txt b/.constraints/py3.9.txt index 7d8b5264..f48ea32f 100644 --- a/.constraints/py3.9.txt +++ b/.constraints/py3.9.txt @@ -14,7 +14,6 @@ async-lru==2.0.4 attrs==24.1.0 babel==2.15.0 beautifulsoup4==4.12.3 -black==24.8.0 bleach==6.1.0 cachetools==5.4.0 cattrs==23.2.3 @@ -70,7 +69,6 @@ ipython==8.18.1 ipython-genutils==0.2.0 ipywidgets==8.1.3 isoduration==20.11.0 -isort==5.13.2 jax==0.4.30 jaxlib==0.4.30 jedi==0.19.1 @@ -136,7 +134,6 @@ pandas==2.2.2 pandocfilters==1.5.1 parso==0.8.4 particle==0.24.0 -pathspec==0.12.1 pexpect==4.9.0 phasespace==1.10.3 pillow==10.4.0 From 93ece4da4f2bdca9f9c2b917d909739bede472b2 Mon Sep 17 00:00:00 2001 From: Remco de Boer <29308176+redeboer@users.noreply.github.com> Date: Tue, 6 Aug 2024 23:05:44 +0200 Subject: [PATCH 08/18] MAINT: remove empty tags from notebooks --- docs/amplitude-analysis.ipynb | 29 +++------ .../analytic-continuation.ipynb | 4 +- docs/usage.ipynb | 60 +++++------------ docs/usage/basics.ipynb | 64 +++++-------------- docs/usage/binned-fit.ipynb | 32 +++------- docs/usage/caching.ipynb | 28 ++------ docs/usage/chi-squared.ipynb | 4 +- docs/usage/faster-lambdify.ipynb | 4 +- docs/usage/unbinned-fit.ipynb | 20 ++---- 9 files changed, 62 insertions(+), 183 deletions(-) diff --git a/docs/amplitude-analysis.ipynb b/docs/amplitude-analysis.ipynb index b225baa6..83cfd2f2 100644 --- a/docs/amplitude-analysis.ipynb +++ b/docs/amplitude-analysis.ipynb @@ -52,9 +52,7 @@ }, { "cell_type": "markdown", - "metadata": { - "tags": [] - }, + "metadata": {}, "source": [ "# Amplitude analysis" ] @@ -101,8 +99,7 @@ { "cell_type": "markdown", "metadata": { - "jp-MarkdownHeadingCollapsed": true, - "tags": [] + "jp-MarkdownHeadingCollapsed": true }, "source": [ "(compwa-step-1)=\n", @@ -201,9 +198,7 @@ { "cell_type": "code", "execution_count": null, - "metadata": { - "tags": [] - }, + "metadata": {}, "outputs": [], "source": [ "import ampform\n", @@ -263,9 +258,7 @@ { "cell_type": "code", "execution_count": null, - "metadata": { - "tags": [] - }, + "metadata": {}, "outputs": [], "source": [ "from ampform.dynamics.builder import (\n", @@ -343,8 +336,7 @@ { "cell_type": "markdown", "metadata": { - "jp-MarkdownHeadingCollapsed": true, - "tags": [] + "jp-MarkdownHeadingCollapsed": true }, "source": [ "(compwa-step-2)=\n", @@ -497,9 +489,7 @@ { "cell_type": "code", "execution_count": null, - "metadata": { - "tags": [] - }, + "metadata": {}, "outputs": [], "source": [ "import numpy as np\n", @@ -511,9 +501,7 @@ { "cell_type": "code", "execution_count": null, - "metadata": { - "tags": [] - }, + "metadata": {}, "outputs": [], "source": [ "p.sum(axis=0).round(decimals=14)" @@ -836,8 +824,7 @@ { "cell_type": "markdown", "metadata": { - "jp-MarkdownHeadingCollapsed": true, - "tags": [] + "jp-MarkdownHeadingCollapsed": true }, "source": [ "(compwa-step-3)=\n", diff --git a/docs/amplitude-analysis/analytic-continuation.ipynb b/docs/amplitude-analysis/analytic-continuation.ipynb index 6e194542..c649095e 100644 --- a/docs/amplitude-analysis/analytic-continuation.ipynb +++ b/docs/amplitude-analysis/analytic-continuation.ipynb @@ -100,9 +100,7 @@ { "cell_type": "code", "execution_count": null, - "metadata": { - "tags": [] - }, + "metadata": {}, "outputs": [], "source": [ "reaction = qrules.generate_transitions(\n", diff --git a/docs/usage.ipynb b/docs/usage.ipynb index 44ff615d..17463de7 100644 --- a/docs/usage.ipynb +++ b/docs/usage.ipynb @@ -52,9 +52,7 @@ }, { "cell_type": "markdown", - "metadata": { - "tags": [] - }, + "metadata": {}, "source": [ "# General examples" ] @@ -112,9 +110,7 @@ { "cell_type": "code", "execution_count": null, - "metadata": { - "tags": [] - }, + "metadata": {}, "outputs": [], "source": [ "import numpy as np\n", @@ -135,9 +131,7 @@ { "cell_type": "code", "execution_count": null, - "metadata": { - "tags": [] - }, + "metadata": {}, "outputs": [], "source": [ "import sympy as sp\n", @@ -157,9 +151,7 @@ { "cell_type": "code", "execution_count": null, - "metadata": { - "tags": [] - }, + "metadata": {}, "outputs": [], "source": [ "from tensorwaves.function.sympy import create_parametrized_function\n", @@ -332,9 +324,7 @@ { "cell_type": "code", "execution_count": null, - "metadata": { - "tags": [] - }, + "metadata": {}, "outputs": [], "source": [ "from tensorwaves.estimator import ChiSquared\n", @@ -433,9 +423,7 @@ { "cell_type": "code", "execution_count": null, - "metadata": { - "tags": [] - }, + "metadata": {}, "outputs": [], "source": [ "import sympy as sp\n", @@ -448,9 +436,7 @@ { "cell_type": "code", "execution_count": null, - "metadata": { - "tags": [] - }, + "metadata": {}, "outputs": [], "source": [ "from tensorwaves.function.sympy import create_function\n", @@ -489,9 +475,7 @@ { "cell_type": "code", "execution_count": null, - "metadata": { - "tags": [] - }, + "metadata": {}, "outputs": [], "source": [ "import numpy as np\n", @@ -531,9 +515,7 @@ { "cell_type": "code", "execution_count": null, - "metadata": { - "tags": [] - }, + "metadata": {}, "outputs": [], "source": [ "%timeit -n3 numpy_function(data)\n", @@ -566,9 +548,7 @@ { "cell_type": "code", "execution_count": null, - "metadata": { - "tags": [] - }, + "metadata": {}, "outputs": [], "source": [ "import sympy as sp\n", @@ -603,9 +583,7 @@ { "cell_type": "code", "execution_count": null, - "metadata": { - "tags": [] - }, + "metadata": {}, "outputs": [], "source": [ "cartesian_to_polar = {\n", @@ -642,9 +620,7 @@ { "cell_type": "code", "execution_count": null, - "metadata": { - "tags": [] - }, + "metadata": {}, "outputs": [], "source": [ "from tensorwaves.data import SympyDataTransformer\n", @@ -669,9 +645,7 @@ { "cell_type": "code", "execution_count": null, - "metadata": { - "tags": [] - }, + "metadata": {}, "outputs": [], "source": [ "from tensorwaves.data import (\n", @@ -814,9 +788,7 @@ }, { "cell_type": "markdown", - "metadata": { - "tags": [] - }, + "metadata": {}, "source": [ "## Advanced examples" ] @@ -830,9 +802,7 @@ }, { "cell_type": "markdown", - "metadata": { - "tags": [] - }, + "metadata": {}, "source": [ "```{toctree}\n", "---\n", diff --git a/docs/usage/basics.ipynb b/docs/usage/basics.ipynb index d5747c5e..f22fe7de 100644 --- a/docs/usage/basics.ipynb +++ b/docs/usage/basics.ipynb @@ -127,9 +127,7 @@ }, { "cell_type": "markdown", - "metadata": { - "tags": [] - }, + "metadata": {}, "source": [ "## Formulate model" ] @@ -144,9 +142,7 @@ { "cell_type": "code", "execution_count": null, - "metadata": { - "tags": [] - }, + "metadata": {}, "outputs": [], "source": [ "def gaussian(x: sp.Symbol, mu: sp.Symbol, sigma: sp.Symbol) -> sp.Expr:\n", @@ -214,9 +210,7 @@ { "cell_type": "code", "execution_count": null, - "metadata": { - "tags": [] - }, + "metadata": {}, "outputs": [], "source": [ "%config InlineBackend.figure_formats = ['svg']\n", @@ -514,9 +508,7 @@ { "cell_type": "code", "execution_count": null, - "metadata": { - "tags": [] - }, + "metadata": {}, "outputs": [], "source": [ "from tensorwaves.data import NumpyDomainGenerator, NumpyUniformRNG\n", @@ -612,9 +604,7 @@ { "cell_type": "code", "execution_count": null, - "metadata": { - "tags": [] - }, + "metadata": {}, "outputs": [], "source": [ "from tensorwaves.data import IntensityDistributionGenerator\n", @@ -664,9 +654,7 @@ { "cell_type": "code", "execution_count": null, - "metadata": { - "tags": [] - }, + "metadata": {}, "outputs": [], "source": [ "initial_parameters = {\n", @@ -723,9 +711,7 @@ { "cell_type": "code", "execution_count": null, - "metadata": { - "tags": [] - }, + "metadata": {}, "outputs": [], "source": [ "estimator = UnbinnedNLL(function_1d, data, domain, backend=\"jax\")" @@ -741,9 +727,7 @@ { "cell_type": "code", "execution_count": null, - "metadata": { - "tags": [] - }, + "metadata": {}, "outputs": [], "source": [ "minuit2 = Minuit2(\n", @@ -789,9 +773,7 @@ { "cell_type": "code", "execution_count": null, - "metadata": { - "tags": [] - }, + "metadata": {}, "outputs": [], "source": [ "optimized_parameters = fit_result.parameter_values\n", @@ -843,9 +825,7 @@ { "cell_type": "code", "execution_count": null, - "metadata": { - "tags": [] - }, + "metadata": {}, "outputs": [], "source": [ "latest_parameters = YAMLSummary.load_latest_parameters(\"fit-result-1D.yaml\")\n", @@ -855,9 +835,7 @@ { "cell_type": "code", "execution_count": null, - "metadata": { - "tags": [] - }, + "metadata": {}, "outputs": [], "source": [ "optimizer = Minuit2()\n", @@ -1005,9 +983,7 @@ { "cell_type": "code", "execution_count": null, - "metadata": { - "tags": [] - }, + "metadata": {}, "outputs": [], "source": [ "boundaries = {\"x\": (0, 5), \"y\": (-np.pi, +np.pi)}\n", @@ -1059,9 +1035,7 @@ { "cell_type": "code", "execution_count": null, - "metadata": { - "tags": [] - }, + "metadata": {}, "outputs": [], "source": [ "initial_parameters = {\n", @@ -1137,9 +1111,7 @@ { "cell_type": "code", "execution_count": null, - "metadata": { - "tags": [] - }, + "metadata": {}, "outputs": [], "source": [ "estimator = UnbinnedNLL(function_2d, data_2d, domain_2d, backend=\"jax\")\n", @@ -1181,9 +1153,7 @@ { "cell_type": "code", "execution_count": null, - "metadata": { - "tags": [] - }, + "metadata": {}, "outputs": [], "source": [ "scipy = ScipyMinimizer(\n", @@ -1222,9 +1192,7 @@ { "cell_type": "code", "execution_count": null, - "metadata": { - "tags": [] - }, + "metadata": {}, "outputs": [], "source": [ "optimized_parameters = fit_result.parameter_values\n", diff --git a/docs/usage/binned-fit.ipynb b/docs/usage/binned-fit.ipynb index 00d82d94..999bb463 100644 --- a/docs/usage/binned-fit.ipynb +++ b/docs/usage/binned-fit.ipynb @@ -67,9 +67,7 @@ { "cell_type": "code", "execution_count": null, - "metadata": { - "tags": [] - }, + "metadata": {}, "outputs": [], "source": [ "import numpy as np\n", @@ -95,9 +93,7 @@ { "cell_type": "code", "execution_count": null, - "metadata": { - "tags": [] - }, + "metadata": {}, "outputs": [], "source": [ "%config InlineBackend.figure_formats = ['svg']\n", @@ -114,9 +110,7 @@ { "cell_type": "code", "execution_count": null, - "metadata": { - "tags": [] - }, + "metadata": {}, "outputs": [], "source": [ "x_values = (bin_edges[1:] + bin_edges[:-1]) / 2\n", @@ -125,9 +119,7 @@ }, { "cell_type": "markdown", - "metadata": { - "tags": [] - }, + "metadata": {}, "source": [ "The data distribution has been generated by {func}`numpy.random.power` and can therefore be described by the following expression:" ] @@ -135,9 +127,7 @@ { "cell_type": "code", "execution_count": null, - "metadata": { - "tags": [] - }, + "metadata": {}, "outputs": [], "source": [ "import sympy as sp\n", @@ -157,9 +147,7 @@ { "cell_type": "code", "execution_count": null, - "metadata": { - "tags": [] - }, + "metadata": {}, "outputs": [], "source": [ "from tensorwaves.function.sympy import create_parametrized_function\n", @@ -204,9 +192,7 @@ { "cell_type": "code", "execution_count": null, - "metadata": { - "tags": [] - }, + "metadata": {}, "outputs": [], "source": [ "from tensorwaves.estimator import ChiSquared\n", @@ -278,9 +264,7 @@ { "cell_type": "code", "execution_count": null, - "metadata": { - "tags": [] - }, + "metadata": {}, "outputs": [], "source": [ "bin_width = bin_edges[1] - bin_edges[0]\n", diff --git a/docs/usage/caching.ipynb b/docs/usage/caching.ipynb index 5a52ebf5..e292dc11 100644 --- a/docs/usage/caching.ipynb +++ b/docs/usage/caching.ipynb @@ -124,9 +124,7 @@ { "cell_type": "code", "execution_count": null, - "metadata": { - "tags": [] - }, + "metadata": {}, "outputs": [], "source": [ "from tensorwaves.function.sympy import create_parametrized_function\n", @@ -346,9 +344,7 @@ { "cell_type": "code", "execution_count": null, - "metadata": { - "tags": [] - }, + "metadata": {}, "outputs": [], "source": [ "from tensorwaves.estimator import create_cached_function\n", @@ -371,9 +367,7 @@ { "cell_type": "code", "execution_count": null, - "metadata": { - "tags": [] - }, + "metadata": {}, "outputs": [], "source": [ "cached_func.parameters" @@ -382,9 +376,7 @@ { "cell_type": "code", "execution_count": null, - "metadata": { - "tags": [] - }, + "metadata": {}, "outputs": [], "source": [ "cache_transformer.functions" @@ -450,9 +442,7 @@ { "cell_type": "code", "execution_count": null, - "metadata": { - "tags": [] - }, + "metadata": {}, "outputs": [], "source": [ "intensities = original_func(domain)\n", @@ -469,9 +459,7 @@ { "cell_type": "code", "execution_count": null, - "metadata": { - "tags": [] - }, + "metadata": {}, "outputs": [], "source": [ "cached_domain = cache_transformer(domain)\n", @@ -515,9 +503,7 @@ { "cell_type": "code", "execution_count": null, - "metadata": { - "tags": [] - }, + "metadata": {}, "outputs": [], "source": [ "%timeit -n100 original_func(domain)\n", diff --git a/docs/usage/chi-squared.ipynb b/docs/usage/chi-squared.ipynb index bdf82b84..f56e1dcc 100644 --- a/docs/usage/chi-squared.ipynb +++ b/docs/usage/chi-squared.ipynb @@ -140,9 +140,7 @@ { "cell_type": "code", "execution_count": null, - "metadata": { - "tags": [] - }, + "metadata": {}, "outputs": [], "source": [ "original_parameters = function.parameters\n", diff --git a/docs/usage/faster-lambdify.ipynb b/docs/usage/faster-lambdify.ipynb index af8e9db6..c7e1374c 100644 --- a/docs/usage/faster-lambdify.ipynb +++ b/docs/usage/faster-lambdify.ipynb @@ -340,9 +340,7 @@ { "cell_type": "code", "execution_count": null, - "metadata": { - "tags": [] - }, + "metadata": {}, "outputs": [], "source": [ "%%time\n", diff --git a/docs/usage/unbinned-fit.ipynb b/docs/usage/unbinned-fit.ipynb index 145c2d69..f33956c1 100644 --- a/docs/usage/unbinned-fit.ipynb +++ b/docs/usage/unbinned-fit.ipynb @@ -67,9 +67,7 @@ { "cell_type": "code", "execution_count": null, - "metadata": { - "tags": [] - }, + "metadata": {}, "outputs": [], "source": [ "import numpy as np\n", @@ -156,9 +154,7 @@ }, { "cell_type": "markdown", - "metadata": { - "tags": [] - }, + "metadata": {}, "source": [ "The data distribution has been generated by {func}`numpy.random.normal` and {func}`numpy.random.rayleigh` and can therefore be described by the following expression:" ] @@ -166,9 +162,7 @@ { "cell_type": "code", "execution_count": null, - "metadata": { - "tags": [] - }, + "metadata": {}, "outputs": [], "source": [ "import sympy as sp\n", @@ -197,9 +191,7 @@ { "cell_type": "code", "execution_count": null, - "metadata": { - "tags": [] - }, + "metadata": {}, "outputs": [], "source": [ "from tensorwaves.function.sympy import create_parametrized_function\n", @@ -260,9 +252,7 @@ { "cell_type": "code", "execution_count": null, - "metadata": { - "tags": [] - }, + "metadata": {}, "outputs": [], "source": [ "from tensorwaves.estimator import UnbinnedNLL\n", From 85c31dc98f414ff4948d10ddd5938b2d793c0ad6 Mon Sep 17 00:00:00 2001 From: Remco de Boer <29308176+redeboer@users.noreply.github.com> Date: Tue, 6 Aug 2024 23:06:20 +0200 Subject: [PATCH 09/18] MAINT: remove `editor` and `slideshow` cell metadata --- docs/amplitude-analysis.ipynb | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/docs/amplitude-analysis.ipynb b/docs/amplitude-analysis.ipynb index 83cfd2f2..cfd701d5 100644 --- a/docs/amplitude-analysis.ipynb +++ b/docs/amplitude-analysis.ipynb @@ -80,13 +80,9 @@ "cell_type": "code", "execution_count": null, "metadata": { - "editable": true, "jupyter": { "source_hidden": true }, - "slideshow": { - "slide_type": "" - }, "tags": [ "remove-cell" ] @@ -1826,13 +1822,9 @@ "cell_type": "code", "execution_count": null, "metadata": { - "editable": true, "jupyter": { "source_hidden": true }, - "slideshow": { - "slide_type": "" - }, "tags": [ "remove-input" ] @@ -1871,13 +1863,9 @@ "cell_type": "code", "execution_count": null, "metadata": { - "editable": true, "jupyter": { "source_hidden": true }, - "slideshow": { - "slide_type": "" - }, "tags": [ "hide-input" ] From 14ff31f99ec6cf29f3cd52d684c1f6c54b49ec96 Mon Sep 17 00:00:00 2001 From: Remco de Boer <29308176+redeboer@users.noreply.github.com> Date: Tue, 6 Aug 2024 23:08:12 +0200 Subject: [PATCH 10/18] MAINT: address linting issues --- .cspell.json | 1 + .pre-commit-config.yaml | 5 +- .vscode/settings.json | 3 + benchmarks/ampform.py | 4 +- benchmarks/expression.py | 4 +- docs/conf.py | 2 +- pyproject.toml | 74 ++++++++++++---------- src/tensorwaves/data/_data_sample.py | 3 +- src/tensorwaves/data/rng.py | 4 +- src/tensorwaves/estimator.py | 2 +- src/tensorwaves/function/sympy/__init__.py | 2 +- src/tensorwaves/function/sympy/_printer.py | 4 +- src/tensorwaves/interface.py | 2 +- src/tensorwaves/optimizer/scipy.py | 3 +- tests/function/test_function.py | 2 +- tests/optimizer/test_fit_simple_model.py | 4 +- tests/optimizer/test_minuit.py | 3 +- tests/optimizer/test_scipy.py | 6 +- tests/test_interface.py | 4 +- 19 files changed, 77 insertions(+), 55 deletions(-) diff --git a/.cspell.json b/.cspell.json index 718c43cc..e7428e5b 100644 --- a/.cspell.json +++ b/.cspell.json @@ -38,6 +38,7 @@ "typings" ], "ignoreWords": [ + "FURB", "MAINT", "Nelder", "PYDEVD", diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f38bca8d..b1791c1f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -23,8 +23,10 @@ repos: - | cell.attachments cell.metadata.code_folding + cell.metadata.editable cell.metadata.id cell.metadata.pycharm + cell.metadata.slideshow cell.metadata.user_expressions metadata.celltoolbar metadata.colab.name @@ -40,7 +42,7 @@ repos: metadata.vscode - repo: https://github.com/ComPWA/policy - rev: 0.3.11 + rev: 0.3.16 hooks: - id: check-dev-files args: @@ -53,6 +55,7 @@ repos: - --repo-title=TensorWaves - id: colab-toc-visible - id: fix-nbformat-version + - id: remove-empty-tags - id: set-nb-cells args: - --add-install-cell diff --git a/.vscode/settings.json b/.vscode/settings.json index 6cbcf264..5ebd2cf5 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -33,6 +33,9 @@ "cSpell.enabled": true, "diffEditor.experimental.showMoves": true, "editor.formatOnSave": true, + "files.associations": { + "**/.constraints/py*.txt": "pip-requirements" + }, "files.watcherExclude": { "**/*_cache/**": true, "**/.eggs/**": true, diff --git a/benchmarks/ampform.py b/benchmarks/ampform.py index d7143975..22cdbafe 100644 --- a/benchmarks/ampform.py +++ b/benchmarks/ampform.py @@ -197,8 +197,8 @@ def test_fit(self, backend, benchmark, model, size): def print_data_sample(data: DataSample, sample_size: int) -> None: """Print a `.DataSample`, so it can be pasted into the expected sample.""" - print() # noqa: T201 - pprint({ # noqa: T203 + print() + pprint({ i: np.round(four_momenta[:sample_size], decimals=11).tolist() for i, four_momenta in data.items() }) diff --git a/benchmarks/expression.py b/benchmarks/expression.py index 1964f38d..f65e62ae 100644 --- a/benchmarks/expression.py +++ b/benchmarks/expression.py @@ -114,7 +114,7 @@ def test_data(backend, benchmark, size): def test_fit( backend: str, benchmark, - optimizer_type: type[Minuit2] | type[ScipyMinimizer], + optimizer_type: type[Minuit2 | ScipyMinimizer], size: int, ): domain, data = generate_data_and_domain(backend, n_data=size, n_domain=10 * size) @@ -131,7 +131,7 @@ def test_fit( result = benchmark(optimizer.optimize, estimator, function.parameters) assert pytest.approx(result.estimator_value, rel=1e-2) == original_nll - if optimizer_type not in {ScipyMinimizer}: + if optimizer_type != ScipyMinimizer: assert result.minimum_valid for par in function.parameters: original_value = original_parameters[par] diff --git a/docs/conf.py b/docs/conf.py index 82b311a8..97b790a2 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -17,7 +17,7 @@ def create_tensorflow_inventory() -> None: if os.path.exists("tensorflow.inv"): return - subprocess.check_call( + subprocess.check_call( # noqa: S603 ("sphobjinv", "convert", "-o", "zlib", "tensorflow.txt"), ) diff --git a/pyproject.toml b/pyproject.toml index 6fc6265e..8c4bbc5f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -220,6 +220,10 @@ module = ["phasespace"] ignore_missing_imports = true module = ["scipy.optimize"] +[[tool.mypy.overrides]] +ignore_missing_imports = true +module = ["sympy.*"] + [[tool.mypy.overrides]] ignore_missing_imports = true module = ["tensorflow.python.ops.numpy_ops"] @@ -309,40 +313,11 @@ docstring-code-format = true line-ending = "lf" [tool.ruff.lint] -extend-select = [ - "A", - "B", - "BLE", - "C4", - "C90", - "D", - "EM", - "ERA", - "FA", - "I", - "ICN", - "INP", - "ISC", - "N", - "NPY", - "PGH", - "PIE", - "PL", - "Q", - "RET", - "RSE", - "RUF", - "S", - "SIM", - "T20", - "TCH", - "TID", - "TRY", - "UP", - "YTT", -] ignore = [ + "ANN401", "C408", + "COM812", + "CPY001", "D101", "D102", "D103", @@ -352,23 +327,48 @@ ignore = [ "D213", "D407", "D416", + "DOC", + "DTZ005", "E501", + "FBT00", + "FURB10", + "FURB140", + "G004", "ISC001", "PLW1514", + "PT001", + "PTH", "RUF012", "S307", "SIM108", ] +select = ["ALL"] task-tags = ["cspell"] +[tool.ruff.lint.flake8-builtins] +builtins-ignorelist = ["display"] + +[tool.ruff.lint.flake8-comprehensions] +allow-dict-calls-with-keyword-arguments = true + +[tool.ruff.lint.flake8-self] +ignore-names = [ + "_latex", + "_numpycode", + "_print", +] + [tool.ruff.lint.isort] split-on-trailing-comma = false [tool.ruff.lint.per-file-ignores] "*.ipynb" = [ + "ANN", + "ARG002", "B018", "C90", "D", + "E303", "E402", "E703", "F404", @@ -389,14 +389,21 @@ split-on-trailing-comma = false "F821", ] "benchmarks/*" = [ + "ANN", "D", + "INP001", + "PGH001", "PLC0415", + "PLC2701", "PLR0913", "PLR0917", "PLR2004", "PLR6301", "S101", + "SLF001", + "T20", ] +"callbacks.py" = ["ARG002"] "docs/*" = [ "E402", "INP001", @@ -413,6 +420,8 @@ split-on-trailing-comma = false "src/tensorwaves/function/_backend.py" = ["PLC0415"] "src/tensorwaves/function/sympy/__init__.py" = ["PLC0415"] "tests/*" = [ + "ANN", + "ARG002", "D", "INP001", "PGH001", @@ -424,6 +433,7 @@ split-on-trailing-comma = false "PLR2004", "PLR6301", "S101", + "SLF001", "T20", ] diff --git a/src/tensorwaves/data/_data_sample.py b/src/tensorwaves/data/_data_sample.py index d524e7fa..486fac78 100644 --- a/src/tensorwaves/data/_data_sample.py +++ b/src/tensorwaves/data/_data_sample.py @@ -2,6 +2,7 @@ from __future__ import annotations +import operator from typing import TYPE_CHECKING, Any, Callable import numpy as np @@ -27,7 +28,7 @@ def _determine_merge_method( sample: DataSample, ) -> Callable[[tuple[np.ndarray, np.ndarray]], np.ndarray]: if len(sample) == 0: - return lambda sample_tuple: sample_tuple[1] + return operator.itemgetter(1) some_array = next(iter(sample.values())) rank = len(some_array.shape) if rank == 1: diff --git a/src/tensorwaves/data/rng.py b/src/tensorwaves/data/rng.py index a85b9bc3..06f80675 100644 --- a/src/tensorwaves/data/rng.py +++ b/src/tensorwaves/data/rng.py @@ -18,7 +18,7 @@ class NumpyUniformRNG(RealNumberGenerator): """Implements a uniform real random number generator using `numpy`.""" - def __init__(self, seed: float | None = None): + def __init__(self, seed: float | None = None) -> None: self.seed = seed def __call__( @@ -45,7 +45,7 @@ def seed(self, value: float | None) -> None: class TFUniformRealNumberGenerator(RealNumberGenerator): """Implements a uniform real random number generator using tensorflow.""" - def __init__(self, seed: float | None = None): + def __init__(self, seed: float | None = None) -> None: try: from tensorflow import float64 # noqa: PLC0415 except ImportError: # pragma: no cover diff --git a/src/tensorwaves/estimator.py b/src/tensorwaves/estimator.py index c9aad946..51af0ca1 100644 --- a/src/tensorwaves/estimator.py +++ b/src/tensorwaves/estimator.py @@ -86,7 +86,7 @@ def gradient_creator( return jax.grad(function) def raise_gradient_not_implemented( - parameters: Mapping[str, ParameterValue], + parameters: Mapping[str, ParameterValue], # noqa: ARG001 ) -> dict[str, ParameterValue]: msg = f"Gradient not implemented for back-end {backend}." raise NotImplementedError(msg) diff --git a/src/tensorwaves/function/sympy/__init__.py b/src/tensorwaves/function/sympy/__init__.py index f351def2..8e706d31 100644 --- a/src/tensorwaves/function/sympy/__init__.py +++ b/src/tensorwaves/function/sympy/__init__.py @@ -468,7 +468,7 @@ def prepare_caching( transformer_expressions[symbol] = sub_expr undefined_variables.update(variables - _get_free_symbols(sub_expr)) for symbol in undefined_variables: - transformer_expressions[symbol] = symbol + transformer_expressions[symbol] = symbol # noqa: PERF403 return cache_expression, transformer_expressions diff --git a/src/tensorwaves/function/sympy/_printer.py b/src/tensorwaves/function/sympy/_printer.py index c2ced124..8963c1c6 100644 --- a/src/tensorwaves/function/sympy/_printer.py +++ b/src/tensorwaves/function/sympy/_printer.py @@ -23,8 +23,8 @@ def __init__(self) -> None: "allow_unknown_functions": True, } ) - self._kc = _replace_module(NumPyPrinter._kc, "numpy", self._module) - self._kf = _replace_module(NumPyPrinter._kf, "numpy", self._module) + self._kc = _replace_module(NumPyPrinter._kc, "numpy", self._module) # noqa: SLF001 + self._kf = _replace_module(NumPyPrinter._kf, "numpy", self._module) # noqa: SLF001 self.printmethod = "_numpycode" # force using _numpycode methods diff --git a/src/tensorwaves/interface.py b/src/tensorwaves/interface.py index 9f13ce4e..4732de58 100644 --- a/src/tensorwaves/interface.py +++ b/src/tensorwaves/interface.py @@ -142,7 +142,7 @@ def _repr_pretty_(self, p: PrettyPrinter, cycle: bool) -> None: else: with p.group(indent=1, open=f"{class_name}("): for attribute in attrs.fields(type(self)): # type: ignore[misc] - if attribute.name in {"specifics"}: + if attribute.name == "specifics": continue value = getattr(self, attribute.name) if value != attribute.default: diff --git a/src/tensorwaves/optimizer/scipy.py b/src/tensorwaves/optimizer/scipy.py index c3e2f750..76c28ecd 100644 --- a/src/tensorwaves/optimizer/scipy.py +++ b/src/tensorwaves/optimizer/scipy.py @@ -80,8 +80,7 @@ def create_parameter_dict( ) def wrapped_function(pars: list) -> float: - nonlocal n_function_calls - nonlocal estimator_value + nonlocal n_function_calls, estimator_value n_function_calls += 1 update_parameters(pars) parameters = parameter_handler.unflatten(flattened_parameters) diff --git a/tests/function/test_function.py b/tests/function/test_function.py index a6f79d3f..09a3326c 100644 --- a/tests/function/test_function.py +++ b/tests/function/test_function.py @@ -117,7 +117,7 @@ def test_variadic_args(self): def test_get_source_code(): - def inline_function(a, x): + def inline_function(a, x): # noqa: FURB118 return a * x function = PositionalArgumentFunction( diff --git a/tests/optimizer/test_fit_simple_model.py b/tests/optimizer/test_fit_simple_model.py index 52e8f79a..680a1046 100644 --- a/tests/optimizer/test_fit_simple_model.py +++ b/tests/optimizer/test_fit_simple_model.py @@ -116,7 +116,7 @@ def test_optimize_all_parameters( backend: str, domain_and_data_sample: tuple[DataSample, DataSample], expression_and_parameters: tuple[sp.Expr, dict[sp.Symbol, float]], - optimizer_type: type[Minuit2] | type[ScipyMinimizer], + optimizer_type: type[Minuit2 | ScipyMinimizer], output_dir: Path, ): domain, data = domain_and_data_sample @@ -157,7 +157,7 @@ def test_optimize_all_parameters( assert pytest.approx(yaml[par]) == result.parameter_values[par] assert pytest.approx(result.estimator_value, rel=5e-3) == original_nll - if optimizer_type not in {ScipyMinimizer}: + if optimizer_type != ScipyMinimizer: assert result.minimum_valid for par in function.parameters: original_value = original_parameters[par] diff --git a/tests/optimizer/test_minuit.py b/tests/optimizer/test_minuit.py index 980b97d9..ff61a3ee 100644 --- a/tests/optimizer/test_minuit.py +++ b/tests/optimizer/test_minuit.py @@ -37,7 +37,8 @@ def __call__(self, parameters: Mapping[str, ParameterValue]) -> float: return self.__polynomial(_x, _y) def gradient( - self, parameters: Mapping[str, ParameterValue] + self, + parameters: Mapping[str, ParameterValue], ) -> dict[str, ParameterValue]: return NotImplemented diff --git a/tests/optimizer/test_scipy.py b/tests/optimizer/test_scipy.py index c7116b86..bbcb6dcd 100644 --- a/tests/optimizer/test_scipy.py +++ b/tests/optimizer/test_scipy.py @@ -22,7 +22,8 @@ def __call__(self, parameters: Mapping[str, ParameterValue]) -> float: return self.__polynomial(_x) def gradient( - self, parameters: Mapping[str, ParameterValue] + self, + parameters: Mapping[str, ParameterValue], ) -> dict[str, ParameterValue]: return NotImplemented @@ -37,7 +38,8 @@ def __call__(self, parameters: Mapping[str, ParameterValue]) -> float: return self.__polynomial(_x, _y) def gradient( - self, parameters: Mapping[str, ParameterValue] + self, + parameters: Mapping[str, ParameterValue], ) -> dict[str, ParameterValue]: return NotImplemented diff --git a/tests/test_interface.py b/tests/test_interface.py index 74869737..0ed1bafc 100644 --- a/tests/test_interface.py +++ b/tests/test_interface.py @@ -1,3 +1,5 @@ +import math + import pytest from IPython.lib.pretty import pretty @@ -13,7 +15,7 @@ def fit_result(self) -> FitResult: function_calls=50, estimator_value=-2e4, parameter_values={ - R"\pi": 3.14, + R"\pi": math.pi, "a": -5.0, "complex": 1 + 1j, }, From 9ae9e1420b9d291ead08c959057124d1e46ae5c1 Mon Sep 17 00:00:00 2001 From: Remco de Boer <29308176+redeboer@users.noreply.github.com> Date: Tue, 6 Aug 2024 23:09:21 +0200 Subject: [PATCH 11/18] MAINT: ignore `unsafe_hash` deprecation warning --- pyproject.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/pyproject.toml b/pyproject.toml index 8c4bbc5f..f19e7cf3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -265,6 +265,7 @@ typeCheckingMode = "strict" addopts = ["--color=yes"] filterwarnings = [ "error", + "ignore: The `hash` argument is deprecated in favor of `unsafe_hash` and will be removed in or after August 2025.:DeprecationWarning", "ignore: `np.bool8` is a deprecated alias for `np.bool_`.*:DeprecationWarning", "ignore:.* is deprecated and will be removed in Pillow 10.*:DeprecationWarning", "ignore:.*Type google\\._upb\\..*This is deprecated.*", From 687b47f1fcabedd0bfa74b551654ba88716bd1d1 Mon Sep 17 00:00:00 2001 From: GitHub Date: Tue, 6 Aug 2024 21:10:16 +0000 Subject: [PATCH 12/18] MAINT: update pip constraints and pre-commit --- .constraints/py3.10.txt | 20 ++++++++++---------- .constraints/py3.11.txt | 20 ++++++++++---------- .constraints/py3.12.txt | 20 ++++++++++---------- .constraints/py3.8.txt | 14 +++++++------- .constraints/py3.9.txt | 14 +++++++------- 5 files changed, 44 insertions(+), 44 deletions(-) diff --git a/.constraints/py3.10.txt b/.constraints/py3.10.txt index 4db15e34..4a13852f 100644 --- a/.constraints/py3.10.txt +++ b/.constraints/py3.10.txt @@ -2,7 +2,7 @@ # uv pip compile pyproject.toml -o .constraints/py3.10.txt --all-extras --no-annotate --python-version=3.10 --no-emit-package setuptools absl-py==2.1.0 accessible-pygments==0.0.5 -alabaster==0.7.16 +alabaster==1.0.0 ampform==0.15.4 anyio==4.4.0 argon2-cffi==23.1.0 @@ -11,14 +11,14 @@ arrow==1.3.0 asttokens==2.4.1 astunparse==1.6.3 async-lru==2.0.4 -attrs==24.1.0 +attrs==24.2.0 babel==2.15.0 beautifulsoup4==4.12.3 bleach==6.1.0 cachetools==5.4.0 cattrs==23.2.3 certifi==2024.7.4 -cffi==1.16.0 +cffi==1.17.0 cfgv==3.4.0 chardet==5.2.0 charset-normalizer==3.3.2 @@ -29,7 +29,7 @@ comm==0.2.2 contourpy==1.2.1 coverage==7.6.1 cycler==0.12.1 -debugpy==1.8.3 +debugpy==1.8.5 decorator==5.1.1 defusedxml==0.7.1 distlib==0.3.8 @@ -112,7 +112,7 @@ mpmath==1.3.0 mypy==1.11.1 mypy-extensions==1.0.0 myst-nb==1.1.1 -myst-parser==3.0.1 +myst-parser==4.0.0 namex==0.0.8 nbclient==0.6.8 nbconvert==7.16.4 @@ -165,7 +165,7 @@ python-lsp-ruff==2.2.2 python-lsp-server==1.11.0 pytoolconfig==1.3.1 pytz==2024.1 -pyyaml==6.0.1 +pyyaml==6.0.2 pyzmq==26.1.0 qrules==0.10.2 qtconsole==5.5.2 @@ -176,7 +176,7 @@ rfc3339-validator==0.1.4 rfc3986-validator==0.1.1 rich==13.7.1 rope==1.13.0 -rpds-py==0.19.1 +rpds-py==0.20.0 ruff==0.5.6 scipy==1.14.0 send2trash==1.8.3 @@ -185,7 +185,7 @@ smmap==5.0.1 sniffio==1.3.1 snowballstemmer==2.2.0 soupsieve==2.5 -sphinx==7.4.7 +sphinx==8.0.2 sphinx-api-relink==0.0.9 sphinx-autobuild==2024.4.16 sphinx-book-theme==1.1.3 @@ -202,7 +202,7 @@ sphinxcontrib-jsmath==1.0.1 sphinxcontrib-qthelp==2.0.0 sphinxcontrib-serializinghtml==2.0.0 sphobjinv==2.3.1.1 -sqlalchemy==2.0.31 +sqlalchemy==2.0.32 stack-data==0.6.3 starlette==0.38.2 sympy==1.13.1 @@ -217,7 +217,7 @@ terminado==0.18.1 tinycss2==1.3.0 tomli==2.0.1 tornado==6.4.1 -tox==4.16.0 +tox==4.17.0 tqdm==4.66.5 traitlets==5.14.3 types-protobuf==5.27.0.20240626 diff --git a/.constraints/py3.11.txt b/.constraints/py3.11.txt index 5c71203d..99d59856 100644 --- a/.constraints/py3.11.txt +++ b/.constraints/py3.11.txt @@ -2,7 +2,7 @@ # uv pip compile pyproject.toml -o .constraints/py3.11.txt --all-extras --no-annotate --python-version=3.11 --no-emit-package setuptools absl-py==2.1.0 accessible-pygments==0.0.5 -alabaster==0.7.16 +alabaster==1.0.0 ampform==0.15.4 anyio==4.4.0 argon2-cffi==23.1.0 @@ -11,14 +11,14 @@ arrow==1.3.0 asttokens==2.4.1 astunparse==1.6.3 async-lru==2.0.4 -attrs==24.1.0 +attrs==24.2.0 babel==2.15.0 beautifulsoup4==4.12.3 bleach==6.1.0 cachetools==5.4.0 cattrs==23.2.3 certifi==2024.7.4 -cffi==1.16.0 +cffi==1.17.0 cfgv==3.4.0 chardet==5.2.0 charset-normalizer==3.3.2 @@ -29,7 +29,7 @@ comm==0.2.2 contourpy==1.2.1 coverage==7.6.1 cycler==0.12.1 -debugpy==1.8.3 +debugpy==1.8.5 decorator==5.1.1 defusedxml==0.7.1 distlib==0.3.8 @@ -111,7 +111,7 @@ mpmath==1.3.0 mypy==1.11.1 mypy-extensions==1.0.0 myst-nb==1.1.1 -myst-parser==3.0.1 +myst-parser==4.0.0 namex==0.0.8 nbclient==0.6.8 nbconvert==7.16.4 @@ -164,7 +164,7 @@ python-lsp-ruff==2.2.2 python-lsp-server==1.11.0 pytoolconfig==1.3.1 pytz==2024.1 -pyyaml==6.0.1 +pyyaml==6.0.2 pyzmq==26.1.0 qrules==0.10.2 qtconsole==5.5.2 @@ -175,7 +175,7 @@ rfc3339-validator==0.1.4 rfc3986-validator==0.1.1 rich==13.7.1 rope==1.13.0 -rpds-py==0.19.1 +rpds-py==0.20.0 ruff==0.5.6 scipy==1.14.0 send2trash==1.8.3 @@ -184,7 +184,7 @@ smmap==5.0.1 sniffio==1.3.1 snowballstemmer==2.2.0 soupsieve==2.5 -sphinx==7.4.7 +sphinx==8.0.2 sphinx-api-relink==0.0.9 sphinx-autobuild==2024.4.16 sphinx-book-theme==1.1.3 @@ -201,7 +201,7 @@ sphinxcontrib-jsmath==1.0.1 sphinxcontrib-qthelp==2.0.0 sphinxcontrib-serializinghtml==2.0.0 sphobjinv==2.3.1.1 -sqlalchemy==2.0.31 +sqlalchemy==2.0.32 stack-data==0.6.3 starlette==0.38.2 sympy==1.13.1 @@ -215,7 +215,7 @@ termcolor==2.4.0 terminado==0.18.1 tinycss2==1.3.0 tornado==6.4.1 -tox==4.16.0 +tox==4.17.0 tqdm==4.66.5 traitlets==5.14.3 types-protobuf==5.27.0.20240626 diff --git a/.constraints/py3.12.txt b/.constraints/py3.12.txt index 1182b308..28b041a4 100644 --- a/.constraints/py3.12.txt +++ b/.constraints/py3.12.txt @@ -2,7 +2,7 @@ # uv pip compile pyproject.toml -o .constraints/py3.12.txt --all-extras --no-annotate --python-version=3.12 --no-emit-package setuptools absl-py==2.1.0 accessible-pygments==0.0.5 -alabaster==0.7.16 +alabaster==1.0.0 ampform==0.15.4 anyio==4.4.0 argon2-cffi==23.1.0 @@ -11,14 +11,14 @@ arrow==1.3.0 asttokens==2.4.1 astunparse==1.6.3 async-lru==2.0.4 -attrs==24.1.0 +attrs==24.2.0 babel==2.15.0 beautifulsoup4==4.12.3 bleach==6.1.0 cachetools==5.4.0 cattrs==23.2.3 certifi==2024.7.4 -cffi==1.16.0 +cffi==1.17.0 cfgv==3.4.0 chardet==5.2.0 charset-normalizer==3.3.2 @@ -29,7 +29,7 @@ comm==0.2.2 contourpy==1.2.1 coverage==7.6.1 cycler==0.12.1 -debugpy==1.8.3 +debugpy==1.8.5 decorator==5.1.1 defusedxml==0.7.1 distlib==0.3.8 @@ -111,7 +111,7 @@ mpmath==1.3.0 mypy==1.11.1 mypy-extensions==1.0.0 myst-nb==1.1.1 -myst-parser==3.0.1 +myst-parser==4.0.0 namex==0.0.8 nbclient==0.6.8 nbconvert==7.16.4 @@ -164,7 +164,7 @@ python-lsp-ruff==2.2.2 python-lsp-server==1.11.0 pytoolconfig==1.3.1 pytz==2024.1 -pyyaml==6.0.1 +pyyaml==6.0.2 pyzmq==26.1.0 qrules==0.10.2 qtconsole==5.5.2 @@ -175,7 +175,7 @@ rfc3339-validator==0.1.4 rfc3986-validator==0.1.1 rich==13.7.1 rope==1.13.0 -rpds-py==0.19.1 +rpds-py==0.20.0 ruff==0.5.6 scipy==1.14.0 send2trash==1.8.3 @@ -184,7 +184,7 @@ smmap==5.0.1 sniffio==1.3.1 snowballstemmer==2.2.0 soupsieve==2.5 -sphinx==7.4.7 +sphinx==8.0.2 sphinx-api-relink==0.0.9 sphinx-autobuild==2024.4.16 sphinx-book-theme==1.1.3 @@ -201,7 +201,7 @@ sphinxcontrib-jsmath==1.0.1 sphinxcontrib-qthelp==2.0.0 sphinxcontrib-serializinghtml==2.0.0 sphobjinv==2.3.1.1 -sqlalchemy==2.0.31 +sqlalchemy==2.0.32 stack-data==0.6.3 starlette==0.38.2 sympy==1.13.1 @@ -214,7 +214,7 @@ termcolor==2.4.0 terminado==0.18.1 tinycss2==1.3.0 tornado==6.4.1 -tox==4.16.0 +tox==4.17.0 tqdm==4.66.5 traitlets==5.14.3 types-protobuf==5.27.0.20240626 diff --git a/.constraints/py3.8.txt b/.constraints/py3.8.txt index c2dad70f..77d444a8 100644 --- a/.constraints/py3.8.txt +++ b/.constraints/py3.8.txt @@ -11,7 +11,7 @@ arrow==1.3.0 asttokens==2.4.1 astunparse==1.6.3 async-lru==2.0.4 -attrs==24.1.0 +attrs==24.2.0 babel==2.15.0 backcall==0.2.0 beautifulsoup4==4.12.3 @@ -19,7 +19,7 @@ bleach==6.1.0 cachetools==5.4.0 cattrs==23.2.3 certifi==2024.7.4 -cffi==1.16.0 +cffi==1.17.0 cfgv==3.4.0 chardet==5.2.0 charset-normalizer==3.3.2 @@ -30,7 +30,7 @@ comm==0.2.2 contourpy==1.1.1 coverage==7.6.1 cycler==0.12.1 -debugpy==1.8.3 +debugpy==1.8.5 decorator==5.1.1 defusedxml==0.7.1 distlib==0.3.8 @@ -173,7 +173,7 @@ python-lsp-ruff==2.2.2 python-lsp-server==1.11.0 pytoolconfig==1.3.1 pytz==2024.1 -pyyaml==6.0.1 +pyyaml==6.0.2 pyzmq==26.1.0 qrules==0.10.2 qtconsole==5.5.2 @@ -184,7 +184,7 @@ requests-oauthlib==2.0.0 rfc3339-validator==0.1.4 rfc3986-validator==0.1.1 rope==1.13.0 -rpds-py==0.19.1 +rpds-py==0.20.0 rsa==4.9 ruff==0.5.6 scipy==1.10.1 @@ -211,7 +211,7 @@ sphinxcontrib-jsmath==1.0.1 sphinxcontrib-qthelp==1.0.3 sphinxcontrib-serializinghtml==1.1.5 sphobjinv==2.3.1.1 -sqlalchemy==2.0.31 +sqlalchemy==2.0.32 stack-data==0.6.3 sympy==1.13.1 tabulate==0.9.0 @@ -227,7 +227,7 @@ terminado==0.18.1 tinycss2==1.3.0 tomli==2.0.1 tornado==6.4.1 -tox==4.16.0 +tox==4.17.0 tqdm==4.66.5 traitlets==5.14.3 types-protobuf==5.27.0.20240626 diff --git a/.constraints/py3.9.txt b/.constraints/py3.9.txt index f48ea32f..8b63efe1 100644 --- a/.constraints/py3.9.txt +++ b/.constraints/py3.9.txt @@ -11,14 +11,14 @@ arrow==1.3.0 asttokens==2.4.1 astunparse==1.6.3 async-lru==2.0.4 -attrs==24.1.0 +attrs==24.2.0 babel==2.15.0 beautifulsoup4==4.12.3 bleach==6.1.0 cachetools==5.4.0 cattrs==23.2.3 certifi==2024.7.4 -cffi==1.16.0 +cffi==1.17.0 cfgv==3.4.0 chardet==5.2.0 charset-normalizer==3.3.2 @@ -29,7 +29,7 @@ comm==0.2.2 contourpy==1.2.1 coverage==7.6.1 cycler==0.12.1 -debugpy==1.8.3 +debugpy==1.8.5 decorator==5.1.1 defusedxml==0.7.1 distlib==0.3.8 @@ -166,7 +166,7 @@ python-lsp-ruff==2.2.2 python-lsp-server==1.11.0 pytoolconfig==1.3.1 pytz==2024.1 -pyyaml==6.0.1 +pyyaml==6.0.2 pyzmq==26.1.0 qrules==0.10.2 qtconsole==5.5.2 @@ -177,7 +177,7 @@ rfc3339-validator==0.1.4 rfc3986-validator==0.1.1 rich==13.7.1 rope==1.13.0 -rpds-py==0.19.1 +rpds-py==0.20.0 ruff==0.5.6 scipy==1.13.1 send2trash==1.8.3 @@ -203,7 +203,7 @@ sphinxcontrib-jsmath==1.0.1 sphinxcontrib-qthelp==2.0.0 sphinxcontrib-serializinghtml==2.0.0 sphobjinv==2.3.1.1 -sqlalchemy==2.0.31 +sqlalchemy==2.0.32 stack-data==0.6.3 starlette==0.38.2 sympy==1.13.1 @@ -218,7 +218,7 @@ terminado==0.18.1 tinycss2==1.3.0 tomli==2.0.1 tornado==6.4.1 -tox==4.16.0 +tox==4.17.0 tqdm==4.66.5 traitlets==5.14.3 types-protobuf==5.27.0.20240626 From e8809f8643b54616feeb2655a32163fe0c818baa Mon Sep 17 00:00:00 2001 From: Remco de Boer <29308176+redeboer@users.noreply.github.com> Date: Tue, 6 Aug 2024 23:23:32 +0200 Subject: [PATCH 13/18] MAINT: fix tests --- pyproject.toml | 1 + tests/function/test_function.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index f19e7cf3..5ca346c8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -270,6 +270,7 @@ filterwarnings = [ "ignore:.* is deprecated and will be removed in Pillow 10.*:DeprecationWarning", "ignore:.*Type google\\._upb\\..*This is deprecated.*", "ignore:.*Using or importing the ABCs.*:DeprecationWarning", + "ignore:.*jax.xla_computation is deprecated*:DeprecationWarning", "ignore:.*the imp module is deprecated in favour of importlib.*:DeprecationWarning", "ignore:Passing a schema to Validator.iter_errors is deprecated.*:DeprecationWarning", "ignore:Please use `spmatrix` from the `scipy.sparse` namespace.*:DeprecationWarning", diff --git a/tests/function/test_function.py b/tests/function/test_function.py index 09a3326c..e784936a 100644 --- a/tests/function/test_function.py +++ b/tests/function/test_function.py @@ -126,7 +126,7 @@ def inline_function(a, x): # noqa: FURB118 ) src = get_source_code(function) expected_src = """ - def inline_function(a, x): + def inline_function(a, x): # noqa: FURB118 return a * x """ assert dedent(src).strip() == dedent(expected_src).strip() From 3f845584fd2eb023caac57ad5b19eb7316701bbd Mon Sep 17 00:00:00 2001 From: Remco de Boer <29308176+redeboer@users.noreply.github.com> Date: Tue, 6 Aug 2024 23:33:04 +0200 Subject: [PATCH 14/18] FIX: downgrade `tensorflow` in tests --- .constraints/py3.10.txt | 6 +++--- .constraints/py3.11.txt | 6 +++--- .constraints/py3.12.txt | 6 +++--- .constraints/py3.9.txt | 6 +++--- pyproject.toml | 1 + 5 files changed, 13 insertions(+), 12 deletions(-) diff --git a/.constraints/py3.10.txt b/.constraints/py3.10.txt index 4a13852f..8a9bec2e 100644 --- a/.constraints/py3.10.txt +++ b/.constraints/py3.10.txt @@ -107,7 +107,7 @@ matplotlib-inline==0.1.7 mdit-py-plugins==0.4.1 mdurl==0.1.2 mistune==3.0.2 -ml-dtypes==0.4.0 +ml-dtypes==0.3.2 mpmath==1.3.0 mypy==1.11.1 mypy-extensions==1.0.0 @@ -207,9 +207,9 @@ stack-data==0.6.3 starlette==0.38.2 sympy==1.13.1 tabulate==0.9.0 -tensorboard==2.17.0 +tensorboard==2.16.2 tensorboard-data-server==0.7.2 -tensorflow==2.17.0 +tensorflow==2.16.2 tensorflow-io-gcs-filesystem==0.37.1 tensorflow-probability==0.24.0 termcolor==2.4.0 diff --git a/.constraints/py3.11.txt b/.constraints/py3.11.txt index 99d59856..c26093ef 100644 --- a/.constraints/py3.11.txt +++ b/.constraints/py3.11.txt @@ -106,7 +106,7 @@ matplotlib-inline==0.1.7 mdit-py-plugins==0.4.1 mdurl==0.1.2 mistune==3.0.2 -ml-dtypes==0.4.0 +ml-dtypes==0.3.2 mpmath==1.3.0 mypy==1.11.1 mypy-extensions==1.0.0 @@ -206,9 +206,9 @@ stack-data==0.6.3 starlette==0.38.2 sympy==1.13.1 tabulate==0.9.0 -tensorboard==2.17.0 +tensorboard==2.16.2 tensorboard-data-server==0.7.2 -tensorflow==2.17.0 +tensorflow==2.16.2 tensorflow-io-gcs-filesystem==0.37.1 tensorflow-probability==0.24.0 termcolor==2.4.0 diff --git a/.constraints/py3.12.txt b/.constraints/py3.12.txt index 28b041a4..cebf3ca9 100644 --- a/.constraints/py3.12.txt +++ b/.constraints/py3.12.txt @@ -106,7 +106,7 @@ matplotlib-inline==0.1.7 mdit-py-plugins==0.4.1 mdurl==0.1.2 mistune==3.0.2 -ml-dtypes==0.4.0 +ml-dtypes==0.3.2 mpmath==1.3.0 mypy==1.11.1 mypy-extensions==1.0.0 @@ -206,9 +206,9 @@ stack-data==0.6.3 starlette==0.38.2 sympy==1.13.1 tabulate==0.9.0 -tensorboard==2.17.0 +tensorboard==2.16.2 tensorboard-data-server==0.7.2 -tensorflow==2.17.0 +tensorflow==2.16.2 tensorflow-probability==0.24.0 termcolor==2.4.0 terminado==0.18.1 diff --git a/.constraints/py3.9.txt b/.constraints/py3.9.txt index 8b63efe1..8c7b3675 100644 --- a/.constraints/py3.9.txt +++ b/.constraints/py3.9.txt @@ -108,7 +108,7 @@ matplotlib-inline==0.1.7 mdit-py-plugins==0.4.1 mdurl==0.1.2 mistune==3.0.2 -ml-dtypes==0.4.0 +ml-dtypes==0.3.2 mpmath==1.3.0 mypy==1.11.1 mypy-extensions==1.0.0 @@ -208,9 +208,9 @@ stack-data==0.6.3 starlette==0.38.2 sympy==1.13.1 tabulate==0.9.0 -tensorboard==2.17.0 +tensorboard==2.16.2 tensorboard-data-server==0.7.2 -tensorflow==2.17.0 +tensorflow==2.16.2 tensorflow-io-gcs-filesystem==0.37.1 tensorflow-probability==0.24.0 termcolor==2.4.0 diff --git a/pyproject.toml b/pyproject.toml index 5ca346c8..e187a371 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -132,6 +132,7 @@ test = [ "pytest-benchmark", "pytest-cov", "pytest-xdist", + "tensorflow !=2.17.0", # https://github.com/ComPWA/tensorwaves/actions/runs/10274147572/job/28430227465?pr=530 "tensorwaves[test-types]", ] test-types = [ From 288908986275e6308d277b65d361c71604aab439 Mon Sep 17 00:00:00 2001 From: GitHub Date: Wed, 7 Aug 2024 08:25:29 +0000 Subject: [PATCH 15/18] MAINT: update pip constraints and pre-commit --- .constraints/py3.10.txt | 2 +- .constraints/py3.11.txt | 2 +- .constraints/py3.12.txt | 2 +- .constraints/py3.8.txt | 2 +- .constraints/py3.9.txt | 2 +- .pre-commit-config.yaml | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.constraints/py3.10.txt b/.constraints/py3.10.txt index 8a9bec2e..bde54424 100644 --- a/.constraints/py3.10.txt +++ b/.constraints/py3.10.txt @@ -102,7 +102,7 @@ lsprotocol==2023.0.1 markdown==3.6 markdown-it-py==3.0.0 markupsafe==2.1.5 -matplotlib==3.9.0 +matplotlib==3.9.1.post1 matplotlib-inline==0.1.7 mdit-py-plugins==0.4.1 mdurl==0.1.2 diff --git a/.constraints/py3.11.txt b/.constraints/py3.11.txt index c26093ef..0f2197c5 100644 --- a/.constraints/py3.11.txt +++ b/.constraints/py3.11.txt @@ -101,7 +101,7 @@ lsprotocol==2023.0.1 markdown==3.6 markdown-it-py==3.0.0 markupsafe==2.1.5 -matplotlib==3.9.0 +matplotlib==3.9.1.post1 matplotlib-inline==0.1.7 mdit-py-plugins==0.4.1 mdurl==0.1.2 diff --git a/.constraints/py3.12.txt b/.constraints/py3.12.txt index cebf3ca9..2aa8a7ad 100644 --- a/.constraints/py3.12.txt +++ b/.constraints/py3.12.txt @@ -101,7 +101,7 @@ lsprotocol==2023.0.1 markdown==3.6 markdown-it-py==3.0.0 markupsafe==2.1.5 -matplotlib==3.9.0 +matplotlib==3.9.1.post1 matplotlib-inline==0.1.7 mdit-py-plugins==0.4.1 mdurl==0.1.2 diff --git a/.constraints/py3.8.txt b/.constraints/py3.8.txt index 77d444a8..dea5cfb8 100644 --- a/.constraints/py3.8.txt +++ b/.constraints/py3.8.txt @@ -48,7 +48,7 @@ fqdn==1.5.1 gast==0.4.0 gitdb==4.0.11 gitpython==3.1.43 -google-auth==2.32.0 +google-auth==2.33.0 google-auth-oauthlib==0.4.6 google-pasta==0.2.0 graphviz==0.20.3 diff --git a/.constraints/py3.9.txt b/.constraints/py3.9.txt index 8c7b3675..0f8627e6 100644 --- a/.constraints/py3.9.txt +++ b/.constraints/py3.9.txt @@ -103,7 +103,7 @@ lsprotocol==2023.0.1 markdown==3.6 markdown-it-py==3.0.0 markupsafe==2.1.5 -matplotlib==3.9.0 +matplotlib==3.9.1.post1 matplotlib-inline==0.1.7 mdit-py-plugins==0.4.1 mdurl==0.1.2 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b1791c1f..252b64e4 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -42,7 +42,7 @@ repos: metadata.vscode - repo: https://github.com/ComPWA/policy - rev: 0.3.16 + rev: 0.3.17 hooks: - id: check-dev-files args: From cba1f9272d72f9f7549c3ce6f0a85e4028b532d3 Mon Sep 17 00:00:00 2001 From: Remco de Boer <29308176+redeboer@users.noreply.github.com> Date: Wed, 7 Aug 2024 10:33:38 +0200 Subject: [PATCH 16/18] MAINT: reduce diff --- tests/optimizer/test_minuit.py | 3 +-- tests/optimizer/test_scipy.py | 6 ++---- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/tests/optimizer/test_minuit.py b/tests/optimizer/test_minuit.py index ff61a3ee..980b97d9 100644 --- a/tests/optimizer/test_minuit.py +++ b/tests/optimizer/test_minuit.py @@ -37,8 +37,7 @@ def __call__(self, parameters: Mapping[str, ParameterValue]) -> float: return self.__polynomial(_x, _y) def gradient( - self, - parameters: Mapping[str, ParameterValue], + self, parameters: Mapping[str, ParameterValue] ) -> dict[str, ParameterValue]: return NotImplemented diff --git a/tests/optimizer/test_scipy.py b/tests/optimizer/test_scipy.py index bbcb6dcd..c7116b86 100644 --- a/tests/optimizer/test_scipy.py +++ b/tests/optimizer/test_scipy.py @@ -22,8 +22,7 @@ def __call__(self, parameters: Mapping[str, ParameterValue]) -> float: return self.__polynomial(_x) def gradient( - self, - parameters: Mapping[str, ParameterValue], + self, parameters: Mapping[str, ParameterValue] ) -> dict[str, ParameterValue]: return NotImplemented @@ -38,8 +37,7 @@ def __call__(self, parameters: Mapping[str, ParameterValue]) -> float: return self.__polynomial(_x, _y) def gradient( - self, - parameters: Mapping[str, ParameterValue], + self, parameters: Mapping[str, ParameterValue] ) -> dict[str, ParameterValue]: return NotImplemented From b1be7bd1aab959aa3a6374910b296479345e44be Mon Sep 17 00:00:00 2001 From: Remco de Boer <29308176+redeboer@users.noreply.github.com> Date: Wed, 7 Aug 2024 13:40:06 +0200 Subject: [PATCH 17/18] FIX: relink matplotlib API --- docs/conf.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/conf.py b/docs/conf.py index 97b790a2..8f8a86ba 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -53,6 +53,9 @@ def get_tensorflow_url() -> str: BINDER_LINK = ( f"https://mybinder.org/v2/gh/ComPWA/{REPO_NAME}/{BRANCH}?filepath=docs/usage" ) +MATPLOTLIB_VERSION_REMAPPING = { + "matplotlib": {"3.9.1.post1": "3.9.1"}, +} add_module_names = False api_github_repo = f"{ORGANIZATION}/{REPO_NAME}" @@ -200,7 +203,10 @@ def get_tensorflow_url() -> str: "graphviz": ("https://graphviz.readthedocs.io/en/stable", None), "iminuit": ("https://scikit-hep.org/iminuit", None), "jax": ("https://jax.readthedocs.io/en/latest", None), - "matplotlib": (f"https://matplotlib.org/{pin('matplotlib')}", None), + "matplotlib": ( + f"https://matplotlib.org/{pin('matplotlib', MATPLOTLIB_VERSION_REMAPPING)}", + None, + ), "numpy": (f"https://numpy.org/doc/{pin_minor('numpy')}", None), "pandas": (f"https://pandas.pydata.org/pandas-docs/version/{pin('pandas')}", None), "pwa": ("https://pwa.readthedocs.io", None), From ae04c2799553bceb080f1d836c91db35acecfb6e Mon Sep 17 00:00:00 2001 From: GitHub Date: Wed, 7 Aug 2024 11:41:14 +0000 Subject: [PATCH 18/18] MAINT: update pip constraints and pre-commit --- .constraints/py3.10.txt | 2 +- .constraints/py3.11.txt | 2 +- .constraints/py3.12.txt | 2 +- .constraints/py3.9.txt | 2 +- .pre-commit-config.yaml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.constraints/py3.10.txt b/.constraints/py3.10.txt index bde54424..b050ac45 100644 --- a/.constraints/py3.10.txt +++ b/.constraints/py3.10.txt @@ -233,7 +233,7 @@ uri-template==1.3.0 urllib3==2.2.2 uvicorn==0.30.5 virtualenv==20.26.3 -watchfiles==0.22.0 +watchfiles==0.23.0 wcwidth==0.2.13 webcolors==24.6.0 webencodings==0.5.1 diff --git a/.constraints/py3.11.txt b/.constraints/py3.11.txt index 0f2197c5..3db13156 100644 --- a/.constraints/py3.11.txt +++ b/.constraints/py3.11.txt @@ -231,7 +231,7 @@ uri-template==1.3.0 urllib3==2.2.2 uvicorn==0.30.5 virtualenv==20.26.3 -watchfiles==0.22.0 +watchfiles==0.23.0 wcwidth==0.2.13 webcolors==24.6.0 webencodings==0.5.1 diff --git a/.constraints/py3.12.txt b/.constraints/py3.12.txt index 2aa8a7ad..d6e73bf3 100644 --- a/.constraints/py3.12.txt +++ b/.constraints/py3.12.txt @@ -230,7 +230,7 @@ uri-template==1.3.0 urllib3==2.2.2 uvicorn==0.30.5 virtualenv==20.26.3 -watchfiles==0.22.0 +watchfiles==0.23.0 wcwidth==0.2.13 webcolors==24.6.0 webencodings==0.5.1 diff --git a/.constraints/py3.9.txt b/.constraints/py3.9.txt index 0f8627e6..3092e76a 100644 --- a/.constraints/py3.9.txt +++ b/.constraints/py3.9.txt @@ -234,7 +234,7 @@ uri-template==1.3.0 urllib3==2.2.2 uvicorn==0.30.5 virtualenv==20.26.3 -watchfiles==0.22.0 +watchfiles==0.23.0 wcwidth==0.2.13 webcolors==24.6.0 webencodings==0.5.1 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 252b64e4..01c579f5 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -42,7 +42,7 @@ repos: metadata.vscode - repo: https://github.com/ComPWA/policy - rev: 0.3.17 + rev: 0.3.18 hooks: - id: check-dev-files args: