From a90ed9dfeda349ad71b4900dad9a2456dcee547f Mon Sep 17 00:00:00 2001 From: Remco de Boer <29308176+redeboer@users.noreply.github.com> Date: Wed, 22 May 2024 14:12:08 +0200 Subject: [PATCH] MAINT: update pip constraints and pre-commit (#274) * FIX: downgrade matplotlib https://github.com/ComPWA/compwa.github.io/actions/runs/9189453016/job/25271564131\?pr\=274 * MAINT: address Ruff linting issues --------- Co-authored-by: GitHub Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .constraints/py3.10.txt | 105 +++++++++++++++++---------------- .constraints/py3.11.txt | 103 ++++++++++++++++---------------- .constraints/py3.12.txt | 103 ++++++++++++++++---------------- .constraints/py3.7.txt | 21 +++---- .constraints/py3.8.txt | 81 ++++++++++++------------- .constraints/py3.9.txt | 103 ++++++++++++++++---------------- .github/release-drafter.yml | 2 + .pre-commit-config.yaml | 12 ++-- docs/adr/002/composition.ipynb | 5 +- docs/adr/002/expr.ipynb | 13 ++-- docs/adr/002/function.ipynb | 5 +- pyproject.toml | 1 + 12 files changed, 285 insertions(+), 269 deletions(-) diff --git a/.constraints/py3.10.txt b/.constraints/py3.10.txt index 17735a1c..8d96e498 100644 --- a/.constraints/py3.10.txt +++ b/.constraints/py3.10.txt @@ -1,6 +1,6 @@ # This file was autogenerated by uv via the following command: # uv pip compile pyproject.toml -o .constraints/py3.10.txt --all-extras --no-annotate --python-version=3.10 --no-emit-package setuptools -accessible-pygments==0.0.4 +accessible-pygments==0.0.5 alabaster==0.7.16 anyio==4.3.0 argon2-cffi==23.1.0 @@ -9,9 +9,9 @@ arrow==1.3.0 asttokens==2.4.1 async-lru==2.0.4 attrs==23.2.0 -babel==2.14.0 +babel==2.15.0 beautifulsoup4==4.12.3 -black==24.3.0 +black==24.4.2 bleach==6.1.0 cachetools==5.3.3 cattrs==23.2.3 @@ -30,11 +30,11 @@ decorator==5.1.1 defusedxml==0.7.1 distlib==0.3.8 docstring-to-markdown==0.15 -docutils==0.20.1 -exceptiongroup==1.2.0 +docutils==0.21.2 +exceptiongroup==1.2.1 executing==2.0.1 fastjsonschema==2.19.1 -filelock==3.13.3 +filelock==3.14.0 fonttools==4.51.0 fqdn==1.5.1 gitdb==4.0.11 @@ -44,23 +44,23 @@ greenlet==3.0.3 h11==0.14.0 httpcore==1.0.5 httpx==0.27.0 -identify==2.5.35 -idna==3.6 +identify==2.5.36 +idna==3.7 imagesize==1.4.1 importlib-metadata==7.1.0 iniconfig==2.0.0 ipykernel==6.29.4 -ipympl==0.9.3 -ipython==8.23.0 +ipympl==0.9.4 +ipython==8.24.0 ipython-genutils==0.2.0 ipywidgets==8.1.2 isoduration==20.11.0 isort==5.13.2 jedi==0.19.1 -jinja2==3.1.3 -json5==0.9.24 +jinja2==3.1.4 +json5==0.9.25 jsonpointer==2.4 -jsonschema==4.21.1 +jsonschema==4.22.0 jsonschema-specifications==2023.12.1 jupyter==1.0.0 jupyter-cache==1.0.0 @@ -68,41 +68,40 @@ jupyter-client==8.6.1 jupyter-console==6.6.3 jupyter-core==5.7.2 jupyter-events==0.10.0 -jupyter-lsp==2.2.4 -jupyter-server==2.13.0 +jupyter-lsp==2.2.5 +jupyter-server==2.14.0 jupyter-server-mathjax==0.2.6 jupyter-server-terminals==0.5.3 -jupyterlab==4.1.5 +jupyterlab==4.2.0 jupyterlab-code-formatter==2.2.1 -jupyterlab-git==0.50.0 +jupyterlab-git==0.50.1 jupyterlab-lsp==5.1.0 -jupyterlab-myst==2.3.2 +jupyterlab-myst==2.4.2 jupyterlab-pygments==0.3.0 -jupyterlab-server==2.25.4 +jupyterlab-server==2.27.1 jupyterlab-widgets==3.0.10 kiwisolver==1.4.5 latexcodec==3.0.0 -livereload==2.6.3 lsprotocol==2023.0.1 markdown-it-py==3.0.0 markupsafe==2.1.5 matplotlib==3.8.4 -matplotlib-inline==0.1.6 -mdit-py-plugins==0.4.0 +matplotlib-inline==0.1.7 +mdit-py-plugins==0.4.1 mdurl==0.1.2 mistune==3.0.2 mpl-interactions==0.24.1 mypy-extensions==1.0.0 -myst-nb==1.0.0 -myst-parser==2.0.0 +myst-nb==1.1.0 +myst-parser==3.0.1 nbclient==0.6.8 -nbconvert==7.16.3 +nbconvert==7.16.4 nbdime==4.0.1 nbformat==5.10.4 nbmake==1.5.3 nest-asyncio==1.6.0 nodeenv==1.8.0 -notebook==7.1.2 +notebook==7.2.0 notebook-shim==0.2.4 numpy==1.26.4 overrides==7.7.0 @@ -112,9 +111,9 @@ parso==0.8.4 pathspec==0.12.1 pexpect==4.9.0 pillow==10.3.0 -platformdirs==4.2.0 -pluggy==1.4.0 -pre-commit==3.7.0 +platformdirs==4.2.2 +pluggy==1.5.0 +pre-commit==3.7.1 prometheus-client==0.20.0 prompt-toolkit==3.0.43 psutil==5.9.8 @@ -124,38 +123,38 @@ pybtex==0.24.0 pybtex-docutils==1.0.3 pycparser==2.22 pydata-sphinx-theme==0.15.2 -pygments==2.17.2 +pygments==2.18.0 pyparsing==3.1.2 pyproject-api==1.6.1 -pytest==8.1.1 +pytest==8.2.1 python-dateutil==2.9.0.post0 python-json-logger==2.0.7 python-lsp-jsonrpc==1.1.2 -python-lsp-ruff==2.2.0 +python-lsp-ruff==2.2.1 python-lsp-server==1.11.0 pytoolconfig==1.3.1 pyyaml==6.0.1 -pyzmq==25.1.2 -qtconsole==5.5.1 +pyzmq==26.0.3 +qtconsole==5.5.2 qtpy==2.4.1 -referencing==0.34.0 -requests==2.31.0 +referencing==0.35.1 +requests==2.32.2 rfc3339-validator==0.1.4 rfc3986-validator==0.1.1 rope==1.13.0 -rpds-py==0.18.0 -ruff==0.3.5 -send2trash==1.8.2 +rpds-py==0.18.1 +ruff==0.4.4 +send2trash==1.8.3 six==1.16.0 smmap==5.0.1 sniffio==1.3.1 snowballstemmer==2.2.0 soupsieve==2.5 -sphinx==7.2.6 -sphinx-api-relink==0.0.8 -sphinx-autobuild==2024.2.4 +sphinx==7.3.7 +sphinx-api-relink==0.0.9 +sphinx-autobuild==2024.4.16 sphinx-book-theme==1.1.2 -sphinx-codeautolink==0.15.0 +sphinx-codeautolink==0.15.1 sphinx-comments==0.0.3 sphinx-copybutton==0.5.2 sphinx-design==0.5.0 @@ -171,28 +170,32 @@ sphinxcontrib-htmlhelp==2.0.5 sphinxcontrib-jsmath==1.0.1 sphinxcontrib-qthelp==1.0.7 sphinxcontrib-serializinghtml==1.1.10 -sqlalchemy==2.0.29 +sqlalchemy==2.0.30 stack-data==0.6.3 +starlette==0.37.2 tabulate==0.9.0 terminado==0.18.1 -tinycss2==1.2.1 +tinycss2==1.3.0 tomli==2.0.1 tornado==6.4 -tox==4.14.2 -traitlets==5.14.2 +tox==4.15.0 +traitlets==5.14.3 types-python-dateutil==2.9.0.20240316 typing-extensions==4.11.0 -ujson==5.9.0 +ujson==5.10.0 uri-template==1.3.0 urllib3==2.2.1 -virtualenv==20.25.1 +uvicorn==0.29.0 +virtualenv==20.26.2 +watchfiles==0.21.0 wcwidth==0.2.13 webcolors==1.13 webencodings==0.5.1 -websocket-client==1.7.0 +websocket-client==1.8.0 +websockets==12.0 wheel==0.43.0 widgetsnbextension==4.0.10 -zipp==3.18.1 +zipp==3.18.2 # The following packages were excluded from the output: # setuptools diff --git a/.constraints/py3.11.txt b/.constraints/py3.11.txt index 12f77b8e..7b82d03a 100644 --- a/.constraints/py3.11.txt +++ b/.constraints/py3.11.txt @@ -1,6 +1,6 @@ # This file was autogenerated by uv via the following command: # uv pip compile pyproject.toml -o .constraints/py3.11.txt --all-extras --no-annotate --python-version=3.11 --no-emit-package setuptools -accessible-pygments==0.0.4 +accessible-pygments==0.0.5 alabaster==0.7.16 anyio==4.3.0 argon2-cffi==23.1.0 @@ -9,9 +9,9 @@ arrow==1.3.0 asttokens==2.4.1 async-lru==2.0.4 attrs==23.2.0 -babel==2.14.0 +babel==2.15.0 beautifulsoup4==4.12.3 -black==24.3.0 +black==24.4.2 bleach==6.1.0 cachetools==5.3.3 cattrs==23.2.3 @@ -30,10 +30,10 @@ decorator==5.1.1 defusedxml==0.7.1 distlib==0.3.8 docstring-to-markdown==0.15 -docutils==0.20.1 +docutils==0.21.2 executing==2.0.1 fastjsonschema==2.19.1 -filelock==3.13.3 +filelock==3.14.0 fonttools==4.51.0 fqdn==1.5.1 gitdb==4.0.11 @@ -43,23 +43,23 @@ greenlet==3.0.3 h11==0.14.0 httpcore==1.0.5 httpx==0.27.0 -identify==2.5.35 -idna==3.6 +identify==2.5.36 +idna==3.7 imagesize==1.4.1 importlib-metadata==7.1.0 iniconfig==2.0.0 ipykernel==6.29.4 -ipympl==0.9.3 -ipython==8.23.0 +ipympl==0.9.4 +ipython==8.24.0 ipython-genutils==0.2.0 ipywidgets==8.1.2 isoduration==20.11.0 isort==5.13.2 jedi==0.19.1 -jinja2==3.1.3 -json5==0.9.24 +jinja2==3.1.4 +json5==0.9.25 jsonpointer==2.4 -jsonschema==4.21.1 +jsonschema==4.22.0 jsonschema-specifications==2023.12.1 jupyter==1.0.0 jupyter-cache==1.0.0 @@ -67,41 +67,40 @@ jupyter-client==8.6.1 jupyter-console==6.6.3 jupyter-core==5.7.2 jupyter-events==0.10.0 -jupyter-lsp==2.2.4 -jupyter-server==2.13.0 +jupyter-lsp==2.2.5 +jupyter-server==2.14.0 jupyter-server-mathjax==0.2.6 jupyter-server-terminals==0.5.3 -jupyterlab==4.1.5 +jupyterlab==4.2.0 jupyterlab-code-formatter==2.2.1 -jupyterlab-git==0.50.0 +jupyterlab-git==0.50.1 jupyterlab-lsp==5.1.0 -jupyterlab-myst==2.3.2 +jupyterlab-myst==2.4.2 jupyterlab-pygments==0.3.0 -jupyterlab-server==2.25.4 +jupyterlab-server==2.27.1 jupyterlab-widgets==3.0.10 kiwisolver==1.4.5 latexcodec==3.0.0 -livereload==2.6.3 lsprotocol==2023.0.1 markdown-it-py==3.0.0 markupsafe==2.1.5 matplotlib==3.8.4 -matplotlib-inline==0.1.6 -mdit-py-plugins==0.4.0 +matplotlib-inline==0.1.7 +mdit-py-plugins==0.4.1 mdurl==0.1.2 mistune==3.0.2 mpl-interactions==0.24.1 mypy-extensions==1.0.0 -myst-nb==1.0.0 -myst-parser==2.0.0 +myst-nb==1.1.0 +myst-parser==3.0.1 nbclient==0.6.8 -nbconvert==7.16.3 +nbconvert==7.16.4 nbdime==4.0.1 nbformat==5.10.4 nbmake==1.5.3 nest-asyncio==1.6.0 nodeenv==1.8.0 -notebook==7.1.2 +notebook==7.2.0 notebook-shim==0.2.4 numpy==1.26.4 overrides==7.7.0 @@ -111,9 +110,9 @@ parso==0.8.4 pathspec==0.12.1 pexpect==4.9.0 pillow==10.3.0 -platformdirs==4.2.0 -pluggy==1.4.0 -pre-commit==3.7.0 +platformdirs==4.2.2 +pluggy==1.5.0 +pre-commit==3.7.1 prometheus-client==0.20.0 prompt-toolkit==3.0.43 psutil==5.9.8 @@ -123,38 +122,38 @@ pybtex==0.24.0 pybtex-docutils==1.0.3 pycparser==2.22 pydata-sphinx-theme==0.15.2 -pygments==2.17.2 +pygments==2.18.0 pyparsing==3.1.2 pyproject-api==1.6.1 -pytest==8.1.1 +pytest==8.2.1 python-dateutil==2.9.0.post0 python-json-logger==2.0.7 python-lsp-jsonrpc==1.1.2 -python-lsp-ruff==2.2.0 +python-lsp-ruff==2.2.1 python-lsp-server==1.11.0 pytoolconfig==1.3.1 pyyaml==6.0.1 -pyzmq==25.1.2 -qtconsole==5.5.1 +pyzmq==26.0.3 +qtconsole==5.5.2 qtpy==2.4.1 -referencing==0.34.0 -requests==2.31.0 +referencing==0.35.1 +requests==2.32.2 rfc3339-validator==0.1.4 rfc3986-validator==0.1.1 rope==1.13.0 -rpds-py==0.18.0 -ruff==0.3.5 -send2trash==1.8.2 +rpds-py==0.18.1 +ruff==0.4.4 +send2trash==1.8.3 six==1.16.0 smmap==5.0.1 sniffio==1.3.1 snowballstemmer==2.2.0 soupsieve==2.5 -sphinx==7.2.6 -sphinx-api-relink==0.0.8 -sphinx-autobuild==2024.2.4 +sphinx==7.3.7 +sphinx-api-relink==0.0.9 +sphinx-autobuild==2024.4.16 sphinx-book-theme==1.1.2 -sphinx-codeautolink==0.15.0 +sphinx-codeautolink==0.15.1 sphinx-comments==0.0.3 sphinx-copybutton==0.5.2 sphinx-design==0.5.0 @@ -170,27 +169,31 @@ sphinxcontrib-htmlhelp==2.0.5 sphinxcontrib-jsmath==1.0.1 sphinxcontrib-qthelp==1.0.7 sphinxcontrib-serializinghtml==1.1.10 -sqlalchemy==2.0.29 +sqlalchemy==2.0.30 stack-data==0.6.3 +starlette==0.37.2 tabulate==0.9.0 terminado==0.18.1 -tinycss2==1.2.1 +tinycss2==1.3.0 tornado==6.4 -tox==4.14.2 -traitlets==5.14.2 +tox==4.15.0 +traitlets==5.14.3 types-python-dateutil==2.9.0.20240316 typing-extensions==4.11.0 -ujson==5.9.0 +ujson==5.10.0 uri-template==1.3.0 urllib3==2.2.1 -virtualenv==20.25.1 +uvicorn==0.29.0 +virtualenv==20.26.2 +watchfiles==0.21.0 wcwidth==0.2.13 webcolors==1.13 webencodings==0.5.1 -websocket-client==1.7.0 +websocket-client==1.8.0 +websockets==12.0 wheel==0.43.0 widgetsnbextension==4.0.10 -zipp==3.18.1 +zipp==3.18.2 # The following packages were excluded from the output: # setuptools diff --git a/.constraints/py3.12.txt b/.constraints/py3.12.txt index 12322693..985217e9 100644 --- a/.constraints/py3.12.txt +++ b/.constraints/py3.12.txt @@ -1,6 +1,6 @@ # This file was autogenerated by uv via the following command: # uv pip compile pyproject.toml -o .constraints/py3.12.txt --all-extras --no-annotate --python-version=3.12 --no-emit-package setuptools -accessible-pygments==0.0.4 +accessible-pygments==0.0.5 alabaster==0.7.16 anyio==4.3.0 argon2-cffi==23.1.0 @@ -9,9 +9,9 @@ arrow==1.3.0 asttokens==2.4.1 async-lru==2.0.4 attrs==23.2.0 -babel==2.14.0 +babel==2.15.0 beautifulsoup4==4.12.3 -black==24.3.0 +black==24.4.2 bleach==6.1.0 cachetools==5.3.3 cattrs==23.2.3 @@ -30,10 +30,10 @@ decorator==5.1.1 defusedxml==0.7.1 distlib==0.3.8 docstring-to-markdown==0.15 -docutils==0.20.1 +docutils==0.21.2 executing==2.0.1 fastjsonschema==2.19.1 -filelock==3.13.3 +filelock==3.14.0 fonttools==4.51.0 fqdn==1.5.1 gitdb==4.0.11 @@ -43,23 +43,23 @@ greenlet==3.0.3 h11==0.14.0 httpcore==1.0.5 httpx==0.27.0 -identify==2.5.35 -idna==3.6 +identify==2.5.36 +idna==3.7 imagesize==1.4.1 importlib-metadata==7.1.0 iniconfig==2.0.0 ipykernel==6.29.4 -ipympl==0.9.3 -ipython==8.23.0 +ipympl==0.9.4 +ipython==8.24.0 ipython-genutils==0.2.0 ipywidgets==8.1.2 isoduration==20.11.0 isort==5.13.2 jedi==0.19.1 -jinja2==3.1.3 -json5==0.9.24 +jinja2==3.1.4 +json5==0.9.25 jsonpointer==2.4 -jsonschema==4.21.1 +jsonschema==4.22.0 jsonschema-specifications==2023.12.1 jupyter==1.0.0 jupyter-cache==1.0.0 @@ -67,41 +67,40 @@ jupyter-client==8.6.1 jupyter-console==6.6.3 jupyter-core==5.7.2 jupyter-events==0.10.0 -jupyter-lsp==2.2.4 -jupyter-server==2.13.0 +jupyter-lsp==2.2.5 +jupyter-server==2.14.0 jupyter-server-mathjax==0.2.6 jupyter-server-terminals==0.5.3 -jupyterlab==4.1.5 +jupyterlab==4.2.0 jupyterlab-code-formatter==2.2.1 -jupyterlab-git==0.50.0 +jupyterlab-git==0.50.1 jupyterlab-lsp==5.1.0 -jupyterlab-myst==2.3.2 +jupyterlab-myst==2.4.2 jupyterlab-pygments==0.3.0 -jupyterlab-server==2.25.4 +jupyterlab-server==2.27.1 jupyterlab-widgets==3.0.10 kiwisolver==1.4.5 latexcodec==3.0.0 -livereload==2.6.3 lsprotocol==2023.0.1 markdown-it-py==3.0.0 markupsafe==2.1.5 matplotlib==3.8.4 -matplotlib-inline==0.1.6 -mdit-py-plugins==0.4.0 +matplotlib-inline==0.1.7 +mdit-py-plugins==0.4.1 mdurl==0.1.2 mistune==3.0.2 mpl-interactions==0.24.1 mypy-extensions==1.0.0 -myst-nb==1.0.0 -myst-parser==2.0.0 +myst-nb==1.1.0 +myst-parser==3.0.1 nbclient==0.6.8 -nbconvert==7.16.3 +nbconvert==7.16.4 nbdime==4.0.1 nbformat==5.10.4 nbmake==1.5.3 nest-asyncio==1.6.0 nodeenv==1.8.0 -notebook==7.1.2 +notebook==7.2.0 notebook-shim==0.2.4 numpy==1.26.4 overrides==7.7.0 @@ -111,9 +110,9 @@ parso==0.8.4 pathspec==0.12.1 pexpect==4.9.0 pillow==10.3.0 -platformdirs==4.2.0 -pluggy==1.4.0 -pre-commit==3.7.0 +platformdirs==4.2.2 +pluggy==1.5.0 +pre-commit==3.7.1 prometheus-client==0.20.0 prompt-toolkit==3.0.43 psutil==5.9.8 @@ -123,38 +122,38 @@ pybtex==0.24.0 pybtex-docutils==1.0.3 pycparser==2.22 pydata-sphinx-theme==0.15.2 -pygments==2.17.2 +pygments==2.18.0 pyparsing==3.1.2 pyproject-api==1.6.1 -pytest==8.1.1 +pytest==8.2.1 python-dateutil==2.9.0.post0 python-json-logger==2.0.7 python-lsp-jsonrpc==1.1.2 -python-lsp-ruff==2.2.0 +python-lsp-ruff==2.2.1 python-lsp-server==1.11.0 pytoolconfig==1.3.1 pyyaml==6.0.1 -pyzmq==25.1.2 -qtconsole==5.5.1 +pyzmq==26.0.3 +qtconsole==5.5.2 qtpy==2.4.1 -referencing==0.34.0 -requests==2.31.0 +referencing==0.35.1 +requests==2.32.2 rfc3339-validator==0.1.4 rfc3986-validator==0.1.1 rope==1.13.0 -rpds-py==0.18.0 -ruff==0.3.5 -send2trash==1.8.2 +rpds-py==0.18.1 +ruff==0.4.4 +send2trash==1.8.3 six==1.16.0 smmap==5.0.1 sniffio==1.3.1 snowballstemmer==2.2.0 soupsieve==2.5 -sphinx==7.2.6 -sphinx-api-relink==0.0.8 -sphinx-autobuild==2024.2.4 +sphinx==7.3.7 +sphinx-api-relink==0.0.9 +sphinx-autobuild==2024.4.16 sphinx-book-theme==1.1.2 -sphinx-codeautolink==0.15.0 +sphinx-codeautolink==0.15.1 sphinx-comments==0.0.3 sphinx-copybutton==0.5.2 sphinx-design==0.5.0 @@ -170,27 +169,31 @@ sphinxcontrib-htmlhelp==2.0.5 sphinxcontrib-jsmath==1.0.1 sphinxcontrib-qthelp==1.0.7 sphinxcontrib-serializinghtml==1.1.10 -sqlalchemy==2.0.29 +sqlalchemy==2.0.30 stack-data==0.6.3 +starlette==0.37.2 tabulate==0.9.0 terminado==0.18.1 -tinycss2==1.2.1 +tinycss2==1.3.0 tornado==6.4 -tox==4.14.2 -traitlets==5.14.2 +tox==4.15.0 +traitlets==5.14.3 types-python-dateutil==2.9.0.20240316 typing-extensions==4.11.0 -ujson==5.9.0 +ujson==5.10.0 uri-template==1.3.0 urllib3==2.2.1 -virtualenv==20.25.1 +uvicorn==0.29.0 +virtualenv==20.26.2 +watchfiles==0.21.0 wcwidth==0.2.13 webcolors==1.13 webencodings==0.5.1 -websocket-client==1.7.0 +websocket-client==1.8.0 +websockets==12.0 wheel==0.43.0 widgetsnbextension==4.0.10 -zipp==3.18.1 +zipp==3.18.2 # The following packages were excluded from the output: # setuptools diff --git a/.constraints/py3.7.txt b/.constraints/py3.7.txt index b86e887d..c557f927 100644 --- a/.constraints/py3.7.txt +++ b/.constraints/py3.7.txt @@ -33,7 +33,7 @@ distlib==0.3.8 docstring-to-markdown==0.15 docutils==0.17.1 entrypoints==0.4 -exceptiongroup==1.2.0 +exceptiongroup==1.2.1 fastjsonschema==2.19.1 filelock==3.12.2 fonttools==4.38.0 @@ -43,7 +43,7 @@ gitpython==3.1.43 graphviz==0.20.1 greenlet==3.0.3 identify==2.5.24 -idna==3.6 +idna==3.7 imagesize==1.4.1 importlib-metadata==6.7.0 importlib-resources==5.12.0 @@ -56,7 +56,7 @@ ipywidgets==8.1.2 isoduration==20.11.0 isort==5.11.5 jedi==0.18.2 -jinja2==3.1.3 +jinja2==3.1.4 json5==0.9.16 jsonpointer==2.4 jsonschema==4.17.3 @@ -68,7 +68,7 @@ jupyter-core==4.12.0 jupyter-events==0.6.3 jupyter-lsp==1.5.1 jupyter-server==1.24.0 -jupyter-server-fileid==0.9.1 +jupyter-server-fileid==0.9.2 jupyter-server-mathjax==0.2.6 jupyter-server-ydoc==0.8.0 jupyter-ydoc==0.2.4 @@ -103,12 +103,13 @@ nbformat==5.8.0 nbmake==1.2.1 nest-asyncio==1.6.0 nodeenv==1.8.0 -notebook==6.5.6 +notebook==6.5.7 notebook-shim==0.2.4 numpy==1.21.6 packaging==24.0 pandocfilters==1.5.1 parso==0.8.4 +pathlib2==2.3.7.post1 pathspec==0.11.2 pexpect==4.9.0 pickleshare==0.7.5 @@ -139,7 +140,7 @@ python-lsp-server==1.7.4 pytoolconfig==1.3.0 pytz==2024.1 pyyaml==6.0.1 -pyzmq==24.0.1 +pyzmq==26.0.3 qtconsole==5.4.4 qtpy==2.4.1 requests==2.31.0 @@ -147,17 +148,17 @@ rfc3339-validator==0.1.4 rfc3986-validator==0.1.1 rope==1.9.0 ruff==0.1.15 -send2trash==1.8.2 +send2trash==1.8.3 six==1.16.0 smmap==5.0.1 sniffio==1.3.1 snowballstemmer==2.2.0 soupsieve==2.4.1 sphinx==5.3.0 -sphinx-api-relink==0.0.8 +sphinx-api-relink==0.0.9 sphinx-autobuild==2021.3.14 sphinx-book-theme==1.0.1 -sphinx-codeautolink==0.15.0 +sphinx-codeautolink==0.15.1 sphinx-comments==0.0.3 sphinx-copybutton==0.5.2 sphinx-design==0.4.1 @@ -186,7 +187,7 @@ typing-extensions==4.7.1 ujson==5.7.0 uri-template==1.3.0 urllib3==2.0.7 -virtualenv==20.25.1 +virtualenv==20.26.2 wcwidth==0.2.13 webcolors==1.13 webencodings==0.5.1 diff --git a/.constraints/py3.8.txt b/.constraints/py3.8.txt index 6da2de11..110c72e0 100644 --- a/.constraints/py3.8.txt +++ b/.constraints/py3.8.txt @@ -9,10 +9,10 @@ arrow==1.3.0 asttokens==2.4.1 async-lru==2.0.4 attrs==23.2.0 -babel==2.14.0 +babel==2.15.0 backcall==0.2.0 beautifulsoup4==4.12.3 -black==24.3.0 +black==24.4.2 bleach==6.1.0 cachetools==5.3.3 cattrs==23.2.3 @@ -32,10 +32,10 @@ defusedxml==0.7.1 distlib==0.3.8 docstring-to-markdown==0.15 docutils==0.17.1 -exceptiongroup==1.2.0 +exceptiongroup==1.2.1 executing==2.0.1 fastjsonschema==2.19.1 -filelock==3.13.3 +filelock==3.14.0 fonttools==4.51.0 fqdn==1.5.1 gitdb==4.0.11 @@ -45,8 +45,8 @@ greenlet==3.0.3 h11==0.14.0 httpcore==1.0.5 httpx==0.27.0 -identify==2.5.35 -idna==3.6 +identify==2.5.36 +idna==3.7 imagesize==1.4.1 importlib-metadata==7.1.0 importlib-resources==6.4.0 @@ -59,10 +59,10 @@ ipywidgets==8.1.2 isoduration==20.11.0 isort==5.13.2 jedi==0.19.1 -jinja2==3.1.3 -json5==0.9.24 +jinja2==3.1.4 +json5==0.9.25 jsonpointer==2.4 -jsonschema==4.21.1 +jsonschema==4.22.0 jsonschema-specifications==2023.12.1 jupyter==1.0.0 jupyter-cache==0.6.1 @@ -70,17 +70,17 @@ jupyter-client==8.6.1 jupyter-console==6.6.3 jupyter-core==5.7.2 jupyter-events==0.10.0 -jupyter-lsp==2.2.4 -jupyter-server==2.13.0 +jupyter-lsp==2.2.5 +jupyter-server==2.14.0 jupyter-server-mathjax==0.2.6 jupyter-server-terminals==0.5.3 -jupyterlab==4.1.5 +jupyterlab==4.2.0 jupyterlab-code-formatter==2.2.1 -jupyterlab-git==0.50.0 +jupyterlab-git==0.50.1 jupyterlab-lsp==5.1.0 -jupyterlab-myst==2.3.2 +jupyterlab-myst==2.4.2 jupyterlab-pygments==0.3.0 -jupyterlab-server==2.25.4 +jupyterlab-server==2.27.1 jupyterlab-widgets==3.0.10 kiwisolver==1.4.5 latexcodec==3.0.0 @@ -89,7 +89,7 @@ lsprotocol==2023.0.1 markdown-it-py==2.2.0 markupsafe==2.1.5 matplotlib==3.7.5 -matplotlib-inline==0.1.6 +matplotlib-inline==0.1.7 mdit-py-plugins==0.3.5 mdurl==0.1.2 mistune==3.0.2 @@ -98,26 +98,27 @@ mypy-extensions==1.0.0 myst-nb==0.17.2 myst-parser==0.18.1 nbclient==0.6.8 -nbconvert==7.16.3 +nbconvert==7.16.4 nbdime==4.0.1 nbformat==5.10.4 nbmake==1.5.3 nest-asyncio==1.6.0 nodeenv==1.8.0 -notebook==7.1.2 +notebook==7.2.0 notebook-shim==0.2.4 numpy==1.24.4 overrides==7.7.0 packaging==24.0 pandocfilters==1.5.1 parso==0.8.4 +pathlib2==2.3.7.post1 pathspec==0.12.1 pexpect==4.9.0 pickleshare==0.7.5 pillow==10.3.0 pkgutil-resolve-name==1.3.10 -platformdirs==4.2.0 -pluggy==1.4.0 +platformdirs==4.2.2 +pluggy==1.5.0 pre-commit==3.5.0 prometheus-client==0.20.0 prompt-toolkit==3.0.43 @@ -128,39 +129,39 @@ pybtex==0.24.0 pybtex-docutils==1.0.3 pycparser==2.22 pydata-sphinx-theme==0.14.4 -pygments==2.17.2 +pygments==2.18.0 pyparsing==3.1.2 pyproject-api==1.6.1 -pytest==8.1.1 +pytest==8.2.1 python-dateutil==2.9.0.post0 python-json-logger==2.0.7 python-lsp-jsonrpc==1.1.2 -python-lsp-ruff==2.2.0 +python-lsp-ruff==2.2.1 python-lsp-server==1.11.0 pytoolconfig==1.3.1 pytz==2024.1 pyyaml==6.0.1 -pyzmq==25.1.2 -qtconsole==5.5.1 +pyzmq==26.0.3 +qtconsole==5.5.2 qtpy==2.4.1 -referencing==0.34.0 -requests==2.31.0 +referencing==0.35.1 +requests==2.32.2 rfc3339-validator==0.1.4 rfc3986-validator==0.1.1 rope==1.13.0 -rpds-py==0.18.0 -ruff==0.3.5 -send2trash==1.8.2 +rpds-py==0.18.1 +ruff==0.4.4 +send2trash==1.8.3 six==1.16.0 smmap==5.0.1 sniffio==1.3.1 snowballstemmer==2.2.0 soupsieve==2.5 sphinx==5.3.0 -sphinx-api-relink==0.0.8 +sphinx-api-relink==0.0.9 sphinx-autobuild==2021.3.14 sphinx-book-theme==1.0.1 -sphinx-codeautolink==0.15.0 +sphinx-codeautolink==0.15.1 sphinx-comments==0.0.3 sphinx-copybutton==0.5.2 sphinx-design==0.5.0 @@ -176,28 +177,28 @@ sphinxcontrib-htmlhelp==2.0.1 sphinxcontrib-jsmath==1.0.1 sphinxcontrib-qthelp==1.0.3 sphinxcontrib-serializinghtml==1.1.5 -sqlalchemy==2.0.29 +sqlalchemy==2.0.30 stack-data==0.6.3 tabulate==0.9.0 terminado==0.18.1 -tinycss2==1.2.1 +tinycss2==1.3.0 tomli==2.0.1 tornado==6.4 -tox==4.14.2 -traitlets==5.14.2 +tox==4.15.0 +traitlets==5.14.3 types-python-dateutil==2.9.0.20240316 typing-extensions==4.11.0 -ujson==5.9.0 +ujson==5.10.0 uri-template==1.3.0 urllib3==2.2.1 -virtualenv==20.25.1 +virtualenv==20.26.2 wcwidth==0.2.13 webcolors==1.13 webencodings==0.5.1 -websocket-client==1.7.0 +websocket-client==1.8.0 wheel==0.43.0 widgetsnbextension==4.0.10 -zipp==3.18.1 +zipp==3.18.2 # The following packages were excluded from the output: # setuptools diff --git a/.constraints/py3.9.txt b/.constraints/py3.9.txt index 2e9b0049..a0dd2f7a 100644 --- a/.constraints/py3.9.txt +++ b/.constraints/py3.9.txt @@ -1,6 +1,6 @@ # This file was autogenerated by uv via the following command: # uv pip compile pyproject.toml -o .constraints/py3.9.txt --all-extras --no-annotate --python-version=3.9 --no-emit-package setuptools -accessible-pygments==0.0.4 +accessible-pygments==0.0.5 alabaster==0.7.16 anyio==4.3.0 argon2-cffi==23.1.0 @@ -9,9 +9,9 @@ arrow==1.3.0 asttokens==2.4.1 async-lru==2.0.4 attrs==23.2.0 -babel==2.14.0 +babel==2.15.0 beautifulsoup4==4.12.3 -black==24.3.0 +black==24.4.2 bleach==6.1.0 cachetools==5.3.3 cattrs==23.2.3 @@ -30,11 +30,11 @@ decorator==5.1.1 defusedxml==0.7.1 distlib==0.3.8 docstring-to-markdown==0.15 -docutils==0.20.1 -exceptiongroup==1.2.0 +docutils==0.21.2 +exceptiongroup==1.2.1 executing==2.0.1 fastjsonschema==2.19.1 -filelock==3.13.3 +filelock==3.14.0 fonttools==4.51.0 fqdn==1.5.1 gitdb==4.0.11 @@ -44,24 +44,24 @@ greenlet==3.0.3 h11==0.14.0 httpcore==1.0.5 httpx==0.27.0 -identify==2.5.35 -idna==3.6 +identify==2.5.36 +idna==3.7 imagesize==1.4.1 importlib-metadata==7.1.0 importlib-resources==6.4.0 iniconfig==2.0.0 ipykernel==6.29.4 -ipympl==0.9.3 +ipympl==0.9.4 ipython==8.18.1 ipython-genutils==0.2.0 ipywidgets==8.1.2 isoduration==20.11.0 isort==5.13.2 jedi==0.19.1 -jinja2==3.1.3 -json5==0.9.24 +jinja2==3.1.4 +json5==0.9.25 jsonpointer==2.4 -jsonschema==4.21.1 +jsonschema==4.22.0 jsonschema-specifications==2023.12.1 jupyter==1.0.0 jupyter-cache==1.0.0 @@ -69,41 +69,40 @@ jupyter-client==8.6.1 jupyter-console==6.6.3 jupyter-core==5.7.2 jupyter-events==0.10.0 -jupyter-lsp==2.2.4 -jupyter-server==2.13.0 +jupyter-lsp==2.2.5 +jupyter-server==2.14.0 jupyter-server-mathjax==0.2.6 jupyter-server-terminals==0.5.3 -jupyterlab==4.1.5 +jupyterlab==4.2.0 jupyterlab-code-formatter==2.2.1 -jupyterlab-git==0.50.0 +jupyterlab-git==0.50.1 jupyterlab-lsp==5.1.0 -jupyterlab-myst==2.3.2 +jupyterlab-myst==2.4.2 jupyterlab-pygments==0.3.0 -jupyterlab-server==2.25.4 +jupyterlab-server==2.27.1 jupyterlab-widgets==3.0.10 kiwisolver==1.4.5 latexcodec==3.0.0 -livereload==2.6.3 lsprotocol==2023.0.1 markdown-it-py==3.0.0 markupsafe==2.1.5 matplotlib==3.8.4 -matplotlib-inline==0.1.6 -mdit-py-plugins==0.4.0 +matplotlib-inline==0.1.7 +mdit-py-plugins==0.4.1 mdurl==0.1.2 mistune==3.0.2 mpl-interactions==0.24.1 mypy-extensions==1.0.0 -myst-nb==1.0.0 -myst-parser==2.0.0 +myst-nb==1.1.0 +myst-parser==3.0.1 nbclient==0.6.8 -nbconvert==7.16.3 +nbconvert==7.16.4 nbdime==4.0.1 nbformat==5.10.4 nbmake==1.5.3 nest-asyncio==1.6.0 nodeenv==1.8.0 -notebook==7.1.2 +notebook==7.2.0 notebook-shim==0.2.4 numpy==1.26.4 overrides==7.7.0 @@ -113,9 +112,9 @@ parso==0.8.4 pathspec==0.12.1 pexpect==4.9.0 pillow==10.3.0 -platformdirs==4.2.0 -pluggy==1.4.0 -pre-commit==3.7.0 +platformdirs==4.2.2 +pluggy==1.5.0 +pre-commit==3.7.1 prometheus-client==0.20.0 prompt-toolkit==3.0.43 psutil==5.9.8 @@ -125,38 +124,38 @@ pybtex==0.24.0 pybtex-docutils==1.0.3 pycparser==2.22 pydata-sphinx-theme==0.15.2 -pygments==2.17.2 +pygments==2.18.0 pyparsing==3.1.2 pyproject-api==1.6.1 -pytest==8.1.1 +pytest==8.2.1 python-dateutil==2.9.0.post0 python-json-logger==2.0.7 python-lsp-jsonrpc==1.1.2 -python-lsp-ruff==2.2.0 +python-lsp-ruff==2.2.1 python-lsp-server==1.11.0 pytoolconfig==1.3.1 pyyaml==6.0.1 -pyzmq==25.1.2 -qtconsole==5.5.1 +pyzmq==26.0.3 +qtconsole==5.5.2 qtpy==2.4.1 -referencing==0.34.0 -requests==2.31.0 +referencing==0.35.1 +requests==2.32.2 rfc3339-validator==0.1.4 rfc3986-validator==0.1.1 rope==1.13.0 -rpds-py==0.18.0 -ruff==0.3.5 -send2trash==1.8.2 +rpds-py==0.18.1 +ruff==0.4.4 +send2trash==1.8.3 six==1.16.0 smmap==5.0.1 sniffio==1.3.1 snowballstemmer==2.2.0 soupsieve==2.5 -sphinx==7.2.6 -sphinx-api-relink==0.0.8 -sphinx-autobuild==2024.2.4 +sphinx==7.3.7 +sphinx-api-relink==0.0.9 +sphinx-autobuild==2024.4.16 sphinx-book-theme==1.1.2 -sphinx-codeautolink==0.15.0 +sphinx-codeautolink==0.15.1 sphinx-comments==0.0.3 sphinx-copybutton==0.5.2 sphinx-design==0.5.0 @@ -172,28 +171,32 @@ sphinxcontrib-htmlhelp==2.0.5 sphinxcontrib-jsmath==1.0.1 sphinxcontrib-qthelp==1.0.7 sphinxcontrib-serializinghtml==1.1.10 -sqlalchemy==2.0.29 +sqlalchemy==2.0.30 stack-data==0.6.3 +starlette==0.37.2 tabulate==0.9.0 terminado==0.18.1 -tinycss2==1.2.1 +tinycss2==1.3.0 tomli==2.0.1 tornado==6.4 -tox==4.14.2 -traitlets==5.14.2 +tox==4.15.0 +traitlets==5.14.3 types-python-dateutil==2.9.0.20240316 typing-extensions==4.11.0 -ujson==5.9.0 +ujson==5.10.0 uri-template==1.3.0 urllib3==2.2.1 -virtualenv==20.25.1 +uvicorn==0.29.0 +virtualenv==20.26.2 +watchfiles==0.21.0 wcwidth==0.2.13 webcolors==1.13 webencodings==0.5.1 -websocket-client==1.7.0 +websocket-client==1.8.0 +websockets==12.0 wheel==0.43.0 widgetsnbextension==4.0.10 -zipp==3.18.1 +zipp==3.18.2 # The following packages were excluded from the output: # setuptools diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml index e427ab98..834bc438 100644 --- a/.github/release-drafter.yml +++ b/.github/release-drafter.yml @@ -32,6 +32,8 @@ replacers: sort-direction: ascending template: | + _See all documentation for this version [here](https://compwa.github.io.rtfd.io/en/$NEXT_PATCH_VERSION)._ + $CHANGES _The full changelog as commits can be found [here](https://github.com/ComPWA/compwa.github.io/compare/$PREVIOUS_TAG...$NEXT_PATCH_VERSION)._ diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d96870f9..9a66cc2a 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.4 + rev: 0.3.8 hooks: - id: check-dev-files args: @@ -55,7 +55,7 @@ repos: - id: fix-nbformat-version - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.3.5 + rev: v0.4.4 hooks: - id: ruff args: [--fix] @@ -64,7 +64,7 @@ repos: types_or: [python, pyi, jupyter] - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.5.0 + rev: v4.6.0 hooks: - id: check-ast - id: check-case-conflict @@ -106,7 +106,7 @@ repos: exclude: (?x)^(.*/Manifest\.toml|.*/Project\.toml)$ - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.28.1 + rev: 0.28.4 hooks: - id: check-jsonschema name: Check CITATION.cff @@ -119,7 +119,7 @@ repos: pass_filenames: false - repo: https://github.com/streetsidesoftware/cspell-cli - rev: v8.6.1 + rev: v8.8.1 hooks: - id: cspell @@ -157,6 +157,6 @@ repos: - jupyter - repo: https://github.com/ComPWA/mirrors-pyright - rev: v1.1.357 + rev: v1.1.363 hooks: - id: pyright diff --git a/docs/adr/002/composition.ipynb b/docs/adr/002/composition.ipynb index 9d5a8531..6eb11c6a 100644 --- a/docs/adr/002/composition.ipynb +++ b/docs/adr/002/composition.ipynb @@ -129,8 +129,7 @@ " q0_squared = two_body_momentum_squared(mass0, m_a, m_b)\n", " ff2 = blatt_weisskopf(q_squared, meson_radius, angular_momentum)\n", " ff02 = blatt_weisskopf(q0_squared, meson_radius, angular_momentum)\n", - " width = gamma0 * (mass0 / mass) * (ff2 / ff02)\n", - " width = width * sp.sqrt(q_squared / q0_squared)\n", + " width = gamma0 * (mass0 / mass) * (ff2 / ff02) * sp.sqrt(q_squared / q0_squared)\n", " return relativistic_breit_wigner(mass, mass0, width) * mass0 * gamma0 * sp.sqrt(ff2)" ] }, @@ -394,7 +393,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.10.13" + "version": "3.10.14" } }, "nbformat": 4, diff --git a/docs/adr/002/expr.ipynb b/docs/adr/002/expr.ipynb index dbca5834..797d66b7 100644 --- a/docs/adr/002/expr.ipynb +++ b/docs/adr/002/expr.ipynb @@ -173,9 +173,6 @@ "cell_type": "code", "execution_count": null, "metadata": { - "jupyter": { - "source_hidden": true - }, "tags": [ "hide-cell" ] @@ -230,8 +227,12 @@ " q0_squared = two_body_momentum_squared(self.mass0, self.m_a, self.m_b)\n", " ff2 = blatt_weisskopf(q_squared, self.meson_radius, self.angular_momentum)\n", " ff02 = blatt_weisskopf(q0_squared, self.meson_radius, self.angular_momentum)\n", - " width = self.gamma0 * (self.mass0 / self.mass) * (ff2 / ff02)\n", - " width = width * sp.sqrt(q_squared / q0_squared)\n", + " width = (\n", + " self.gamma0\n", + " * (self.mass0 / self.mass)\n", + " * (ff2 / ff02)\n", + " * sp.sqrt(q_squared / q0_squared)\n", + " )\n", " # Expression\n", " return (\n", " RelativisticBreitWigner(self.mass, self.mass0, width)\n", @@ -572,7 +573,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.10.13" + "version": "3.10.14" } }, "nbformat": 4, diff --git a/docs/adr/002/function.ipynb b/docs/adr/002/function.ipynb index e1f2e8e2..851c0327 100644 --- a/docs/adr/002/function.ipynb +++ b/docs/adr/002/function.ipynb @@ -147,8 +147,7 @@ " q0_squared = two_body_momentum_squared(mass0, m_a, m_b)\n", " ff2 = blatt_weisskopf(q_squared, meson_radius, angular_momentum)\n", " ff02 = blatt_weisskopf(q0_squared, meson_radius, angular_momentum)\n", - " width = gamma0 * (mass0 / mass) * (ff2 / ff02)\n", - " width = width * sp.sqrt(q_squared / q0_squared)\n", + " width = gamma0 * (mass0 / mass) * (ff2 / ff02) * sp.sqrt(q_squared / q0_squared)\n", " # Expression\n", " return (\n", " RelativisticBreitWigner(mass, mass0, width) * mass0 * gamma0 * sp.sqrt(ff2)\n", @@ -237,7 +236,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.10.13" + "version": "3.10.14" } }, "nbformat": 4, diff --git a/pyproject.toml b/pyproject.toml index f5674f10..d035592d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -28,6 +28,7 @@ classifiers = [ dependencies = [ "graphviz", "ipympl", + "matplotlib <3.9.0", # https://github.com/ComPWA/compwa.github.io/actions/runs/9189453016/job/25271564131?pr=274 "matplotlib", "mpl-interactions", ]