diff --git a/.constraints/py3.10.txt b/.constraints/py3.10.txt index baa62c5f8..29658e75c 100644 --- a/.constraints/py3.10.txt +++ b/.constraints/py3.10.txt @@ -9,21 +9,21 @@ arrow==1.3.0 asttokens==2.4.1 async-lru==2.0.4 attrs==24.2.0 -babel==2.15.0 +babel==2.16.0 beautifulsoup4==4.12.3 black==24.8.0 bleach==6.1.0 -cachetools==5.4.0 -cattrs==23.2.3 -certifi==2024.7.4 -cffi==1.17.0 +cachetools==5.5.0 +cattrs==24.1.0 +certifi==2024.8.30 +cffi==1.17.1 cfgv==3.4.0 chardet==5.2.0 charset-normalizer==3.3.2 click==8.1.7 colorama==0.4.6 comm==0.2.2 -contourpy==1.2.1 +contourpy==1.3.0 coverage==7.6.1 cycler==0.12.1 debugpy==1.8.5 @@ -34,30 +34,30 @@ docstring-to-markdown==0.15 docutils==0.21.2 exceptiongroup==1.2.2 execnet==2.1.1 -executing==2.0.1 +executing==2.1.0 fastjsonschema==2.20.0 -filelock==3.15.4 +filelock==3.16.0 fonttools==4.53.1 fqdn==1.5.1 gitdb==4.0.11 gitpython==3.1.43 gprof2dot==2024.6.6 graphviz==0.20.3 -greenlet==3.0.3 +greenlet==3.1.0 h11==0.14.0 hepunits==2.3.4 httpcore==1.0.5 -httpx==0.27.0 +httpx==0.27.2 identify==2.6.0 -idna==3.7 +idna==3.8 imagesize==1.4.1 -importlib-metadata==8.2.0 +importlib-metadata==8.4.0 iniconfig==2.0.0 ipykernel==6.29.5 ipympl==0.9.4 -ipython==8.26.0 +ipython==8.27.0 ipython-genutils==0.2.0 -ipywidgets==8.1.3 +ipywidgets==8.1.5 isoduration==20.11.0 jedi==0.19.1 jinja2==3.1.4 @@ -73,48 +73,48 @@ jupyter-lsp==2.2.5 jupyter-server==2.14.2 jupyter-server-mathjax==0.2.6 jupyter-server-terminals==0.5.3 -jupyterlab==4.2.4 -jupyterlab-code-formatter==3.0.1 +jupyterlab==4.2.5 +jupyterlab-code-formatter==3.0.2 jupyterlab-git==0.50.1 jupyterlab-lsp==5.1.0 jupyterlab-myst==2.4.2 jupyterlab-pygments==0.3.0 jupyterlab-server==2.27.3 -jupyterlab-widgets==3.0.11 -kiwisolver==1.4.5 +jupyterlab-widgets==3.0.13 +kiwisolver==1.4.7 latexcodec==3.0.0 lsprotocol==2023.0.1 markdown-it-py==3.0.0 markupsafe==2.1.5 matplotlib==3.8.4 matplotlib-inline==0.1.7 -mdit-py-plugins==0.4.1 +mdit-py-plugins==0.4.2 mdurl==0.1.2 mistune==3.0.2 -mpl-interactions==0.24.1 +mpl-interactions==0.24.2 mpmath==1.3.0 -mypy==1.11.1 +mypy==1.11.2 mypy-extensions==1.0.0 myst-nb==1.1.1 myst-parser==4.0.0 nbclient==0.6.8 nbconvert==7.16.4 -nbdime==4.0.1 +nbdime==4.0.2 nbformat==5.10.4 nbmake==1.5.4 nest-asyncio==1.6.0 nodeenv==1.9.1 notebook-shim==0.2.4 -numpy==2.0.1 +numpy==2.1.1 overrides==7.7.0 packaging==24.1 pandocfilters==1.5.1 parso==0.8.4 -particle==0.24.0 +particle==0.25.0 pathspec==0.12.1 pexpect==4.9.0 pillow==10.4.0 -platformdirs==4.2.2 +platformdirs==4.3.2 pluggy==1.5.0 pre-commit==3.8.0 prometheus-client==0.20.0 @@ -128,9 +128,9 @@ pybtex-docutils==1.0.3 pycparser==2.22 pydata-sphinx-theme==0.15.4 pygments==2.18.0 -pyparsing==3.1.2 +pyparsing==3.1.4 pyproject-api==1.7.1 -pytest==8.3.2 +pytest==8.3.3 pytest-benchmark==4.0.0 pytest-cov==5.0.0 pytest-profiling==1.7.0 @@ -140,29 +140,29 @@ python-dateutil==2.9.0.post0 python-json-logger==2.0.7 python-lsp-jsonrpc==1.1.2 python-lsp-ruff==2.2.2 -python-lsp-server==1.11.0 +python-lsp-server==1.12.0 pytoolconfig==1.3.1 pyyaml==6.0.2 -pyzmq==26.1.0 +pyzmq==26.2.0 qrules==0.10.2 referencing==0.35.1 requests==2.32.3 rfc3339-validator==0.1.4 rfc3986-validator==0.1.1 -rich==13.7.1 +rich==13.8.1 rope==1.13.0 rpds-py==0.20.0 -ruff==0.5.6 -scipy==1.14.0 +ruff==0.6.4 +scipy==1.14.1 send2trash==1.8.3 six==1.16.0 smmap==5.0.1 sniffio==1.3.1 snowballstemmer==2.2.0 -soupsieve==2.5 +soupsieve==2.6 sphinx==8.0.2 sphinx-api-relink==0.0.9 -sphinx-autobuild==2024.4.16 +sphinx-autobuild==2024.9.3 sphinx-book-theme==1.1.3 sphinx-codeautolink==0.15.2 sphinx-comments==0.0.3 @@ -179,34 +179,34 @@ sphinxcontrib-htmlhelp==2.1.0 sphinxcontrib-jsmath==1.0.1 sphinxcontrib-qthelp==2.0.0 sphinxcontrib-serializinghtml==2.0.0 -sqlalchemy==2.0.32 +sqlalchemy==2.0.34 stack-data==0.6.3 -starlette==0.38.2 -sympy==1.13.1 +starlette==0.38.5 +sympy==1.13.2 tabulate==0.9.0 terminado==0.18.1 tinycss2==1.3.0 tomli==2.0.1 tornado==6.4.1 -tox==4.17.0 +tox==4.18.1 tqdm==4.66.5 traitlets==5.14.3 -types-python-dateutil==2.9.0.20240316 +types-python-dateutil==2.9.0.20240906 typing-extensions==4.12.2 ujson==5.10.0 uri-template==1.3.0 urllib3==2.2.2 -uvicorn==0.30.5 -virtualenv==20.26.3 -watchfiles==0.23.0 +uvicorn==0.30.6 +virtualenv==20.26.4 +watchfiles==0.24.0 wcwidth==0.2.13 -webcolors==24.6.0 +webcolors==24.8.0 webencodings==0.5.1 websocket-client==1.8.0 -websockets==12.0 +websockets==13.0.1 wheel==0.44.0 -widgetsnbextension==4.0.11 -zipp==3.19.2 +widgetsnbextension==4.0.13 +zipp==3.20.1 # The following packages were excluded from the output: # setuptools diff --git a/.constraints/py3.11.txt b/.constraints/py3.11.txt index e7dd78955..021623d6b 100644 --- a/.constraints/py3.11.txt +++ b/.constraints/py3.11.txt @@ -9,21 +9,21 @@ arrow==1.3.0 asttokens==2.4.1 async-lru==2.0.4 attrs==24.2.0 -babel==2.15.0 +babel==2.16.0 beautifulsoup4==4.12.3 black==24.8.0 bleach==6.1.0 -cachetools==5.4.0 -cattrs==23.2.3 -certifi==2024.7.4 -cffi==1.17.0 +cachetools==5.5.0 +cattrs==24.1.0 +certifi==2024.8.30 +cffi==1.17.1 cfgv==3.4.0 chardet==5.2.0 charset-normalizer==3.3.2 click==8.1.7 colorama==0.4.6 comm==0.2.2 -contourpy==1.2.1 +contourpy==1.3.0 coverage==7.6.1 cycler==0.12.1 debugpy==1.8.5 @@ -33,30 +33,30 @@ distlib==0.3.8 docstring-to-markdown==0.15 docutils==0.21.2 execnet==2.1.1 -executing==2.0.1 +executing==2.1.0 fastjsonschema==2.20.0 -filelock==3.15.4 +filelock==3.16.0 fonttools==4.53.1 fqdn==1.5.1 gitdb==4.0.11 gitpython==3.1.43 gprof2dot==2024.6.6 graphviz==0.20.3 -greenlet==3.0.3 +greenlet==3.1.0 h11==0.14.0 hepunits==2.3.4 httpcore==1.0.5 -httpx==0.27.0 +httpx==0.27.2 identify==2.6.0 -idna==3.7 +idna==3.8 imagesize==1.4.1 -importlib-metadata==8.2.0 +importlib-metadata==8.4.0 iniconfig==2.0.0 ipykernel==6.29.5 ipympl==0.9.4 -ipython==8.26.0 +ipython==8.27.0 ipython-genutils==0.2.0 -ipywidgets==8.1.3 +ipywidgets==8.1.5 isoduration==20.11.0 jedi==0.19.1 jinja2==3.1.4 @@ -72,48 +72,48 @@ jupyter-lsp==2.2.5 jupyter-server==2.14.2 jupyter-server-mathjax==0.2.6 jupyter-server-terminals==0.5.3 -jupyterlab==4.2.4 -jupyterlab-code-formatter==3.0.1 +jupyterlab==4.2.5 +jupyterlab-code-formatter==3.0.2 jupyterlab-git==0.50.1 jupyterlab-lsp==5.1.0 jupyterlab-myst==2.4.2 jupyterlab-pygments==0.3.0 jupyterlab-server==2.27.3 -jupyterlab-widgets==3.0.11 -kiwisolver==1.4.5 +jupyterlab-widgets==3.0.13 +kiwisolver==1.4.7 latexcodec==3.0.0 lsprotocol==2023.0.1 markdown-it-py==3.0.0 markupsafe==2.1.5 matplotlib==3.8.4 matplotlib-inline==0.1.7 -mdit-py-plugins==0.4.1 +mdit-py-plugins==0.4.2 mdurl==0.1.2 mistune==3.0.2 -mpl-interactions==0.24.1 +mpl-interactions==0.24.2 mpmath==1.3.0 -mypy==1.11.1 +mypy==1.11.2 mypy-extensions==1.0.0 myst-nb==1.1.1 myst-parser==4.0.0 nbclient==0.6.8 nbconvert==7.16.4 -nbdime==4.0.1 +nbdime==4.0.2 nbformat==5.10.4 nbmake==1.5.4 nest-asyncio==1.6.0 nodeenv==1.9.1 notebook-shim==0.2.4 -numpy==2.0.1 +numpy==2.1.1 overrides==7.7.0 packaging==24.1 pandocfilters==1.5.1 parso==0.8.4 -particle==0.24.0 +particle==0.25.0 pathspec==0.12.1 pexpect==4.9.0 pillow==10.4.0 -platformdirs==4.2.2 +platformdirs==4.3.2 pluggy==1.5.0 pre-commit==3.8.0 prometheus-client==0.20.0 @@ -127,9 +127,9 @@ pybtex-docutils==1.0.3 pycparser==2.22 pydata-sphinx-theme==0.15.4 pygments==2.18.0 -pyparsing==3.1.2 +pyparsing==3.1.4 pyproject-api==1.7.1 -pytest==8.3.2 +pytest==8.3.3 pytest-benchmark==4.0.0 pytest-cov==5.0.0 pytest-profiling==1.7.0 @@ -139,29 +139,29 @@ python-dateutil==2.9.0.post0 python-json-logger==2.0.7 python-lsp-jsonrpc==1.1.2 python-lsp-ruff==2.2.2 -python-lsp-server==1.11.0 +python-lsp-server==1.12.0 pytoolconfig==1.3.1 pyyaml==6.0.2 -pyzmq==26.1.0 +pyzmq==26.2.0 qrules==0.10.2 referencing==0.35.1 requests==2.32.3 rfc3339-validator==0.1.4 rfc3986-validator==0.1.1 -rich==13.7.1 +rich==13.8.1 rope==1.13.0 rpds-py==0.20.0 -ruff==0.5.6 -scipy==1.14.0 +ruff==0.6.4 +scipy==1.14.1 send2trash==1.8.3 six==1.16.0 smmap==5.0.1 sniffio==1.3.1 snowballstemmer==2.2.0 -soupsieve==2.5 +soupsieve==2.6 sphinx==8.0.2 sphinx-api-relink==0.0.9 -sphinx-autobuild==2024.4.16 +sphinx-autobuild==2024.9.3 sphinx-book-theme==1.1.3 sphinx-codeautolink==0.15.2 sphinx-comments==0.0.3 @@ -178,33 +178,34 @@ sphinxcontrib-htmlhelp==2.1.0 sphinxcontrib-jsmath==1.0.1 sphinxcontrib-qthelp==2.0.0 sphinxcontrib-serializinghtml==2.0.0 -sqlalchemy==2.0.32 +sqlalchemy==2.0.34 stack-data==0.6.3 -starlette==0.38.2 -sympy==1.13.1 +starlette==0.38.5 +sympy==1.13.2 tabulate==0.9.0 terminado==0.18.1 tinycss2==1.3.0 +tomli==2.0.1 tornado==6.4.1 -tox==4.17.0 +tox==4.18.1 tqdm==4.66.5 traitlets==5.14.3 -types-python-dateutil==2.9.0.20240316 +types-python-dateutil==2.9.0.20240906 typing-extensions==4.12.2 ujson==5.10.0 uri-template==1.3.0 urllib3==2.2.2 -uvicorn==0.30.5 -virtualenv==20.26.3 -watchfiles==0.23.0 +uvicorn==0.30.6 +virtualenv==20.26.4 +watchfiles==0.24.0 wcwidth==0.2.13 -webcolors==24.6.0 +webcolors==24.8.0 webencodings==0.5.1 websocket-client==1.8.0 -websockets==12.0 +websockets==13.0.1 wheel==0.44.0 -widgetsnbextension==4.0.11 -zipp==3.19.2 +widgetsnbextension==4.0.13 +zipp==3.20.1 # The following packages were excluded from the output: # setuptools diff --git a/.constraints/py3.12.txt b/.constraints/py3.12.txt index 7a71524b9..5d2d56371 100644 --- a/.constraints/py3.12.txt +++ b/.constraints/py3.12.txt @@ -9,21 +9,21 @@ arrow==1.3.0 asttokens==2.4.1 async-lru==2.0.4 attrs==24.2.0 -babel==2.15.0 +babel==2.16.0 beautifulsoup4==4.12.3 black==24.8.0 bleach==6.1.0 -cachetools==5.4.0 -cattrs==23.2.3 -certifi==2024.7.4 -cffi==1.17.0 +cachetools==5.5.0 +cattrs==24.1.0 +certifi==2024.8.30 +cffi==1.17.1 cfgv==3.4.0 chardet==5.2.0 charset-normalizer==3.3.2 click==8.1.7 colorama==0.4.6 comm==0.2.2 -contourpy==1.2.1 +contourpy==1.3.0 coverage==7.6.1 cycler==0.12.1 debugpy==1.8.5 @@ -33,30 +33,30 @@ distlib==0.3.8 docstring-to-markdown==0.15 docutils==0.21.2 execnet==2.1.1 -executing==2.0.1 +executing==2.1.0 fastjsonschema==2.20.0 -filelock==3.15.4 +filelock==3.16.0 fonttools==4.53.1 fqdn==1.5.1 gitdb==4.0.11 gitpython==3.1.43 gprof2dot==2024.6.6 graphviz==0.20.3 -greenlet==3.0.3 +greenlet==3.1.0 h11==0.14.0 hepunits==2.3.4 httpcore==1.0.5 -httpx==0.27.0 +httpx==0.27.2 identify==2.6.0 -idna==3.7 +idna==3.8 imagesize==1.4.1 -importlib-metadata==8.2.0 +importlib-metadata==8.4.0 iniconfig==2.0.0 ipykernel==6.29.5 ipympl==0.9.4 -ipython==8.26.0 +ipython==8.27.0 ipython-genutils==0.2.0 -ipywidgets==8.1.3 +ipywidgets==8.1.5 isoduration==20.11.0 jedi==0.19.1 jinja2==3.1.4 @@ -72,48 +72,48 @@ jupyter-lsp==2.2.5 jupyter-server==2.14.2 jupyter-server-mathjax==0.2.6 jupyter-server-terminals==0.5.3 -jupyterlab==4.2.4 -jupyterlab-code-formatter==3.0.1 +jupyterlab==4.2.5 +jupyterlab-code-formatter==3.0.2 jupyterlab-git==0.50.1 jupyterlab-lsp==5.1.0 jupyterlab-myst==2.4.2 jupyterlab-pygments==0.3.0 jupyterlab-server==2.27.3 -jupyterlab-widgets==3.0.11 -kiwisolver==1.4.5 +jupyterlab-widgets==3.0.13 +kiwisolver==1.4.7 latexcodec==3.0.0 lsprotocol==2023.0.1 markdown-it-py==3.0.0 markupsafe==2.1.5 matplotlib==3.8.4 matplotlib-inline==0.1.7 -mdit-py-plugins==0.4.1 +mdit-py-plugins==0.4.2 mdurl==0.1.2 mistune==3.0.2 -mpl-interactions==0.24.1 +mpl-interactions==0.24.2 mpmath==1.3.0 -mypy==1.11.1 +mypy==1.11.2 mypy-extensions==1.0.0 myst-nb==1.1.1 myst-parser==4.0.0 nbclient==0.6.8 nbconvert==7.16.4 -nbdime==4.0.1 +nbdime==4.0.2 nbformat==5.10.4 nbmake==1.5.4 nest-asyncio==1.6.0 nodeenv==1.9.1 notebook-shim==0.2.4 -numpy==2.0.1 +numpy==2.1.1 overrides==7.7.0 packaging==24.1 pandocfilters==1.5.1 parso==0.8.4 -particle==0.24.0 +particle==0.25.0 pathspec==0.12.1 pexpect==4.9.0 pillow==10.4.0 -platformdirs==4.2.2 +platformdirs==4.3.2 pluggy==1.5.0 pre-commit==3.8.0 prometheus-client==0.20.0 @@ -127,9 +127,9 @@ pybtex-docutils==1.0.3 pycparser==2.22 pydata-sphinx-theme==0.15.4 pygments==2.18.0 -pyparsing==3.1.2 +pyparsing==3.1.4 pyproject-api==1.7.1 -pytest==8.3.2 +pytest==8.3.3 pytest-benchmark==4.0.0 pytest-cov==5.0.0 pytest-profiling==1.7.0 @@ -139,29 +139,29 @@ python-dateutil==2.9.0.post0 python-json-logger==2.0.7 python-lsp-jsonrpc==1.1.2 python-lsp-ruff==2.2.2 -python-lsp-server==1.11.0 +python-lsp-server==1.12.0 pytoolconfig==1.3.1 pyyaml==6.0.2 -pyzmq==26.1.0 +pyzmq==26.2.0 qrules==0.10.2 referencing==0.35.1 requests==2.32.3 rfc3339-validator==0.1.4 rfc3986-validator==0.1.1 -rich==13.7.1 +rich==13.8.1 rope==1.13.0 rpds-py==0.20.0 -ruff==0.5.6 -scipy==1.14.0 +ruff==0.6.4 +scipy==1.14.1 send2trash==1.8.3 six==1.16.0 smmap==5.0.1 sniffio==1.3.1 snowballstemmer==2.2.0 -soupsieve==2.5 +soupsieve==2.6 sphinx==8.0.2 sphinx-api-relink==0.0.9 -sphinx-autobuild==2024.4.16 +sphinx-autobuild==2024.9.3 sphinx-book-theme==1.1.3 sphinx-codeautolink==0.15.2 sphinx-comments==0.0.3 @@ -178,33 +178,33 @@ sphinxcontrib-htmlhelp==2.1.0 sphinxcontrib-jsmath==1.0.1 sphinxcontrib-qthelp==2.0.0 sphinxcontrib-serializinghtml==2.0.0 -sqlalchemy==2.0.32 +sqlalchemy==2.0.34 stack-data==0.6.3 -starlette==0.38.2 -sympy==1.13.1 +starlette==0.38.5 +sympy==1.13.2 tabulate==0.9.0 terminado==0.18.1 tinycss2==1.3.0 tornado==6.4.1 -tox==4.17.0 +tox==4.18.1 tqdm==4.66.5 traitlets==5.14.3 -types-python-dateutil==2.9.0.20240316 +types-python-dateutil==2.9.0.20240906 typing-extensions==4.12.2 ujson==5.10.0 uri-template==1.3.0 urllib3==2.2.2 -uvicorn==0.30.5 -virtualenv==20.26.3 -watchfiles==0.23.0 +uvicorn==0.30.6 +virtualenv==20.26.4 +watchfiles==0.24.0 wcwidth==0.2.13 -webcolors==24.6.0 +webcolors==24.8.0 webencodings==0.5.1 websocket-client==1.8.0 -websockets==12.0 +websockets==13.0.1 wheel==0.44.0 -widgetsnbextension==4.0.11 -zipp==3.19.2 +widgetsnbextension==4.0.13 +zipp==3.20.1 # The following packages were excluded from the output: # setuptools diff --git a/.constraints/py3.7.txt b/.constraints/py3.7.txt index e9a17a68b..ce9abc77d 100644 --- a/.constraints/py3.7.txt +++ b/.constraints/py3.7.txt @@ -15,9 +15,9 @@ beautifulsoup4==4.12.3 black==23.3.0 bleach==6.0.0 cached-property==1.5.2 -cachetools==5.4.0 +cachetools==5.5.0 cattrs==23.1.2 -certifi==2024.7.4 +certifi==2024.8.30 cffi==1.15.1 cfgv==3.3.1 chardet==5.2.0 @@ -44,10 +44,10 @@ gitdb==4.0.11 gitpython==3.1.43 gprof2dot==2022.7.29 graphviz==0.20.1 -greenlet==3.0.3 +greenlet==3.1.0 hepunits==2.3.3 identify==2.5.24 -idna==3.7 +idna==3.8 imagesize==1.4.1 importlib-metadata==6.7.0 importlib-resources==5.12.0 @@ -56,7 +56,7 @@ ipykernel==6.16.2 ipympl==0.9.3 ipython==7.34.0 ipython-genutils==0.2.0 -ipywidgets==8.1.3 +ipywidgets==8.1.5 isoduration==20.11.0 jedi==0.18.2 jinja2==3.1.4 @@ -69,18 +69,18 @@ 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.2 +jupyter-server-fileid==0.9.3 jupyter-server-mathjax==0.2.6 jupyter-server-ydoc==0.8.0 jupyter-ydoc==0.2.5 -jupyterlab==3.6.7 -jupyterlab-code-formatter==3.0.1 +jupyterlab==3.6.8 +jupyterlab-code-formatter==3.0.2 jupyterlab-git==0.44.0 jupyterlab-lsp==3.10.2 jupyterlab-myst==1.2.0 jupyterlab-pygments==0.2.2 jupyterlab-server==2.24.0 -jupyterlab-widgets==3.0.11 +jupyterlab-widgets==3.0.13 kiwisolver==1.4.5 latexcodec==3.0.0 livereload==2.7.0 @@ -129,10 +129,10 @@ py-cpuinfo==9.0.0 pybtex==0.24.0 pybtex-docutils==1.0.3 pycparser==2.21 -pydantic==1.10.17 +pydantic==1.10.18 pydata-sphinx-theme==0.13.3 pygments==2.17.2 -pyparsing==3.1.2 +pyparsing==3.1.4 pyproject-api==1.5.3 pyrsistent==0.19.3 pytest==7.4.4 @@ -149,12 +149,12 @@ python-lsp-server==1.7.4 pytoolconfig==1.3.0 pytz==2024.1 pyyaml==6.0.1 -pyzmq==26.1.0 +pyzmq==26.2.0 qrules==0.10.2 requests==2.31.0 rfc3339-validator==0.1.4 rfc3986-validator==0.1.1 -rich==13.7.1 +rich==13.8.1 rope==1.9.0 ruff==0.1.15 scipy==1.7.3 @@ -184,7 +184,7 @@ sphinxcontrib-htmlhelp==2.0.0 sphinxcontrib-jsmath==1.0.1 sphinxcontrib-qthelp==1.0.3 sphinxcontrib-serializinghtml==1.1.5 -sqlalchemy==1.4.53 +sqlalchemy==1.4.54 sympy==1.10.1 tabulate==0.9.0 terminado==0.17.1 @@ -199,13 +199,13 @@ typing-extensions==4.7.1 ujson==5.7.0 uri-template==1.3.0 urllib3==2.0.7 -virtualenv==20.26.3 +virtualenv==20.26.4 wcwidth==0.2.13 webcolors==1.13 webencodings==0.5.1 websocket-client==1.6.1 wheel==0.42.0 -widgetsnbextension==4.0.11 +widgetsnbextension==4.0.13 y-py==0.6.2 ypy-websocket==0.8.4 zipp==3.15.0 diff --git a/.constraints/py3.8.txt b/.constraints/py3.8.txt index acd28f4d1..800cface4 100644 --- a/.constraints/py3.8.txt +++ b/.constraints/py3.8.txt @@ -9,15 +9,15 @@ arrow==1.3.0 asttokens==2.4.1 async-lru==2.0.4 attrs==24.2.0 -babel==2.15.0 +babel==2.16.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 -certifi==2024.7.4 -cffi==1.17.0 +cachetools==5.5.0 +cattrs==24.1.0 +certifi==2024.8.30 +cffi==1.17.1 cfgv==3.4.0 chardet==5.2.0 charset-normalizer==3.3.2 @@ -35,31 +35,31 @@ docstring-to-markdown==0.15 docutils==0.17.1 exceptiongroup==1.2.2 execnet==2.1.1 -executing==2.0.1 +executing==2.1.0 fastjsonschema==2.20.0 -filelock==3.15.4 +filelock==3.16.0 fonttools==4.53.1 fqdn==1.5.1 gitdb==4.0.11 gitpython==3.1.43 gprof2dot==2024.6.6 graphviz==0.20.3 -greenlet==3.0.3 +greenlet==3.1.0 h11==0.14.0 hepunits==2.3.4 httpcore==1.0.5 -httpx==0.27.0 +httpx==0.27.2 identify==2.6.0 -idna==3.7 +idna==3.8 imagesize==1.4.1 -importlib-metadata==8.2.0 -importlib-resources==6.4.0 +importlib-metadata==8.4.0 +importlib-resources==6.4.5 iniconfig==2.0.0 ipykernel==6.29.5 ipympl==0.9.3 ipython==8.12.3 ipython-genutils==0.2.0 -ipywidgets==8.1.3 +ipywidgets==8.1.5 isoduration==20.11.0 jedi==0.19.1 jinja2==3.1.4 @@ -75,15 +75,15 @@ jupyter-lsp==2.2.5 jupyter-server==2.14.2 jupyter-server-mathjax==0.2.6 jupyter-server-terminals==0.5.3 -jupyterlab==4.2.4 -jupyterlab-code-formatter==3.0.1 +jupyterlab==4.2.5 +jupyterlab-code-formatter==3.0.2 jupyterlab-git==0.50.1 jupyterlab-lsp==5.1.0 jupyterlab-myst==2.4.2 jupyterlab-pygments==0.3.0 jupyterlab-server==2.27.3 -jupyterlab-widgets==3.0.11 -kiwisolver==1.4.5 +jupyterlab-widgets==3.0.13 +kiwisolver==1.4.7 latexcodec==3.0.0 livereload==2.7.0 lsprotocol==2023.0.1 @@ -94,15 +94,15 @@ matplotlib-inline==0.1.7 mdit-py-plugins==0.3.5 mdurl==0.1.2 mistune==3.0.2 -mpl-interactions==0.24.1 +mpl-interactions==0.24.2 mpmath==1.3.0 -mypy==1.11.1 +mypy==1.11.2 mypy-extensions==1.0.0 myst-nb==0.17.2 myst-parser==0.18.1 nbclient==0.6.8 nbconvert==7.16.4 -nbdime==4.0.1 +nbdime==4.0.2 nbformat==5.10.4 nbmake==1.5.4 nest-asyncio==1.6.0 @@ -113,13 +113,13 @@ overrides==7.7.0 packaging==24.1 pandocfilters==1.5.1 parso==0.8.4 -particle==0.24.0 +particle==0.25.0 pathspec==0.12.1 pexpect==4.9.0 pickleshare==0.7.5 pillow==10.4.0 pkgutil-resolve-name==1.3.10 -platformdirs==4.2.2 +platformdirs==4.3.2 pluggy==1.5.0 pre-commit==3.5.0 prometheus-client==0.20.0 @@ -133,9 +133,9 @@ pybtex-docutils==1.0.3 pycparser==2.22 pydata-sphinx-theme==0.14.4 pygments==2.18.0 -pyparsing==3.1.2 +pyparsing==3.1.4 pyproject-api==1.7.1 -pytest==8.3.2 +pytest==8.3.3 pytest-benchmark==4.0.0 pytest-cov==5.0.0 pytest-profiling==1.7.0 @@ -145,27 +145,27 @@ python-dateutil==2.9.0.post0 python-json-logger==2.0.7 python-lsp-jsonrpc==1.1.2 python-lsp-ruff==2.2.2 -python-lsp-server==1.11.0 +python-lsp-server==1.12.0 pytoolconfig==1.3.1 pytz==2024.1 pyyaml==6.0.2 -pyzmq==26.1.0 +pyzmq==26.2.0 qrules==0.10.2 referencing==0.35.1 requests==2.32.3 rfc3339-validator==0.1.4 rfc3986-validator==0.1.1 -rich==13.7.1 +rich==13.8.1 rope==1.13.0 rpds-py==0.20.0 -ruff==0.5.6 +ruff==0.6.4 scipy==1.10.1 send2trash==1.8.3 six==1.16.0 smmap==5.0.1 sniffio==1.3.1 snowballstemmer==2.2.0 -soupsieve==2.5 +soupsieve==2.6 sphinx==5.3.0 sphinx-api-relink==0.0.9 sphinx-autobuild==2021.3.14 @@ -185,30 +185,30 @@ sphinxcontrib-htmlhelp==2.0.1 sphinxcontrib-jsmath==1.0.1 sphinxcontrib-qthelp==1.0.3 sphinxcontrib-serializinghtml==1.1.5 -sqlalchemy==2.0.32 +sqlalchemy==2.0.34 stack-data==0.6.3 -sympy==1.13.1 +sympy==1.13.2 tabulate==0.9.0 terminado==0.18.1 tinycss2==1.3.0 tomli==2.0.1 tornado==6.4.1 -tox==4.17.0 +tox==4.18.1 tqdm==4.66.5 traitlets==5.14.3 -types-python-dateutil==2.9.0.20240316 +types-python-dateutil==2.9.0.20240906 typing-extensions==4.12.2 ujson==5.10.0 uri-template==1.3.0 urllib3==2.2.2 -virtualenv==20.26.3 +virtualenv==20.26.4 wcwidth==0.2.13 -webcolors==24.6.0 +webcolors==24.8.0 webencodings==0.5.1 websocket-client==1.8.0 wheel==0.44.0 -widgetsnbextension==4.0.11 -zipp==3.19.2 +widgetsnbextension==4.0.13 +zipp==3.20.1 # The following packages were excluded from the output: # setuptools diff --git a/.constraints/py3.9.txt b/.constraints/py3.9.txt index 4ed309995..35a1147b4 100644 --- a/.constraints/py3.9.txt +++ b/.constraints/py3.9.txt @@ -9,21 +9,21 @@ arrow==1.3.0 asttokens==2.4.1 async-lru==2.0.4 attrs==24.2.0 -babel==2.15.0 +babel==2.16.0 beautifulsoup4==4.12.3 black==24.8.0 bleach==6.1.0 -cachetools==5.4.0 -cattrs==23.2.3 -certifi==2024.7.4 -cffi==1.17.0 +cachetools==5.5.0 +cattrs==24.1.0 +certifi==2024.8.30 +cffi==1.17.1 cfgv==3.4.0 chardet==5.2.0 charset-normalizer==3.3.2 click==8.1.7 colorama==0.4.6 comm==0.2.2 -contourpy==1.2.1 +contourpy==1.3.0 coverage==7.6.1 cycler==0.12.1 debugpy==1.8.5 @@ -34,31 +34,31 @@ docstring-to-markdown==0.15 docutils==0.21.2 exceptiongroup==1.2.2 execnet==2.1.1 -executing==2.0.1 +executing==2.1.0 fastjsonschema==2.20.0 -filelock==3.15.4 +filelock==3.16.0 fonttools==4.53.1 fqdn==1.5.1 gitdb==4.0.11 gitpython==3.1.43 gprof2dot==2024.6.6 graphviz==0.20.3 -greenlet==3.0.3 +greenlet==3.1.0 h11==0.14.0 hepunits==2.3.4 httpcore==1.0.5 -httpx==0.27.0 +httpx==0.27.2 identify==2.6.0 -idna==3.7 +idna==3.8 imagesize==1.4.1 -importlib-metadata==8.2.0 -importlib-resources==6.4.0 +importlib-metadata==8.4.0 +importlib-resources==6.4.5 iniconfig==2.0.0 ipykernel==6.29.5 ipympl==0.9.4 ipython==8.18.1 ipython-genutils==0.2.0 -ipywidgets==8.1.3 +ipywidgets==8.1.5 isoduration==20.11.0 jedi==0.19.1 jinja2==3.1.4 @@ -74,48 +74,48 @@ jupyter-lsp==2.2.5 jupyter-server==2.14.2 jupyter-server-mathjax==0.2.6 jupyter-server-terminals==0.5.3 -jupyterlab==4.2.4 -jupyterlab-code-formatter==3.0.1 +jupyterlab==4.2.5 +jupyterlab-code-formatter==3.0.2 jupyterlab-git==0.50.1 jupyterlab-lsp==5.1.0 jupyterlab-myst==2.4.2 jupyterlab-pygments==0.3.0 jupyterlab-server==2.27.3 -jupyterlab-widgets==3.0.11 -kiwisolver==1.4.5 +jupyterlab-widgets==3.0.13 +kiwisolver==1.4.7 latexcodec==3.0.0 lsprotocol==2023.0.1 markdown-it-py==3.0.0 markupsafe==2.1.5 matplotlib==3.8.4 matplotlib-inline==0.1.7 -mdit-py-plugins==0.4.1 +mdit-py-plugins==0.4.2 mdurl==0.1.2 mistune==3.0.2 -mpl-interactions==0.24.1 +mpl-interactions==0.24.2 mpmath==1.3.0 -mypy==1.11.1 +mypy==1.11.2 mypy-extensions==1.0.0 myst-nb==1.1.1 myst-parser==3.0.1 nbclient==0.6.8 nbconvert==7.16.4 -nbdime==4.0.1 +nbdime==4.0.2 nbformat==5.10.4 nbmake==1.5.4 nest-asyncio==1.6.0 nodeenv==1.9.1 notebook-shim==0.2.4 -numpy==2.0.1 +numpy==2.0.2 overrides==7.7.0 packaging==24.1 pandocfilters==1.5.1 parso==0.8.4 -particle==0.24.0 +particle==0.25.0 pathspec==0.12.1 pexpect==4.9.0 pillow==10.4.0 -platformdirs==4.2.2 +platformdirs==4.3.2 pluggy==1.5.0 pre-commit==3.8.0 prometheus-client==0.20.0 @@ -129,9 +129,9 @@ pybtex-docutils==1.0.3 pycparser==2.22 pydata-sphinx-theme==0.15.4 pygments==2.18.0 -pyparsing==3.1.2 +pyparsing==3.1.4 pyproject-api==1.7.1 -pytest==8.3.2 +pytest==8.3.3 pytest-benchmark==4.0.0 pytest-cov==5.0.0 pytest-profiling==1.7.0 @@ -141,29 +141,29 @@ python-dateutil==2.9.0.post0 python-json-logger==2.0.7 python-lsp-jsonrpc==1.1.2 python-lsp-ruff==2.2.2 -python-lsp-server==1.11.0 +python-lsp-server==1.12.0 pytoolconfig==1.3.1 pyyaml==6.0.2 -pyzmq==26.1.0 +pyzmq==26.2.0 qrules==0.10.2 referencing==0.35.1 requests==2.32.3 rfc3339-validator==0.1.4 rfc3986-validator==0.1.1 -rich==13.7.1 +rich==13.8.1 rope==1.13.0 rpds-py==0.20.0 -ruff==0.5.6 +ruff==0.6.4 scipy==1.13.1 send2trash==1.8.3 six==1.16.0 smmap==5.0.1 sniffio==1.3.1 snowballstemmer==2.2.0 -soupsieve==2.5 +soupsieve==2.6 sphinx==7.4.7 sphinx-api-relink==0.0.9 -sphinx-autobuild==2024.4.16 +sphinx-autobuild==2024.9.3 sphinx-book-theme==1.1.3 sphinx-codeautolink==0.15.2 sphinx-comments==0.0.3 @@ -180,34 +180,34 @@ sphinxcontrib-htmlhelp==2.1.0 sphinxcontrib-jsmath==1.0.1 sphinxcontrib-qthelp==2.0.0 sphinxcontrib-serializinghtml==2.0.0 -sqlalchemy==2.0.32 +sqlalchemy==2.0.34 stack-data==0.6.3 -starlette==0.38.2 -sympy==1.13.1 +starlette==0.38.5 +sympy==1.13.2 tabulate==0.9.0 terminado==0.18.1 tinycss2==1.3.0 tomli==2.0.1 tornado==6.4.1 -tox==4.17.0 +tox==4.18.1 tqdm==4.66.5 traitlets==5.14.3 -types-python-dateutil==2.9.0.20240316 +types-python-dateutil==2.9.0.20240906 typing-extensions==4.12.2 ujson==5.10.0 uri-template==1.3.0 urllib3==2.2.2 -uvicorn==0.30.5 -virtualenv==20.26.3 -watchfiles==0.23.0 +uvicorn==0.30.6 +virtualenv==20.26.4 +watchfiles==0.24.0 wcwidth==0.2.13 -webcolors==24.6.0 +webcolors==24.8.0 webencodings==0.5.1 websocket-client==1.8.0 -websockets==12.0 +websockets==13.0.1 wheel==0.44.0 -widgetsnbextension==4.0.11 -zipp==3.19.2 +widgetsnbextension==4.0.13 +zipp==3.20.1 # The following packages were excluded from the output: # setuptools diff --git a/.cspell.json b/.cspell.json index 03f4f2aaf..75779f229 100644 --- a/.cspell.json +++ b/.cspell.json @@ -25,8 +25,9 @@ "*.ico", ".constraints/*.txt", ".editorconfig", + ".envrc", + ".gitattributes", ".gitignore", - ".gitpod.*", ".pre-commit-config.yaml", ".prettierignore", ".readthedocs.yml", diff --git a/.envrc b/.envrc index cce3aa58a..e1d415a53 100644 --- a/.envrc +++ b/.envrc @@ -1 +1,10 @@ -layout anaconda +if [ -e .venv ]; then + source .venv/bin/activate +elif [ -e venv ]; then + source venv/bin/activate +elif [ -e .pixi ]; then + watch_file pixi.lock + eval "$(pixi shell-hook)" +else + layout anaconda +fi diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 000000000..18f6c7e96 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +pixi.lock linguist-language=YAML linguist-generated=true diff --git a/.gitignore b/.gitignore index 5dc65be51..c54ff596d 100644 --- a/.gitignore +++ b/.gitignore @@ -36,6 +36,7 @@ prof/ # Virtual environments *venv/ +.pixi/ .tox/ pyvenv*/ @@ -47,7 +48,6 @@ pyvenv*/ !.cspell.json !.github/*.yml !.github/*/*.yml -!.gitpod.yml !.pre-commit-config.yaml !.readthedocs.yml !.vscode/*.json diff --git a/.gitpod.yml b/.gitpod.yml deleted file mode 100644 index 70eb70799..000000000 --- a/.gitpod.yml +++ /dev/null @@ -1,37 +0,0 @@ -tasks: - - init: pyenv local 3.11 - - init: pip install -c .constraints/py3.11.txt -e .[dev] - -github: - prebuilds: - master: true - branches: false - pullRequests: true - pullRequestsFromForks: true - addComment: false - addBadge: false - addLabel: false - -vscode: - extensions: - - charliermarsh.ruff - - christian-kohler.path-intellisense - - eamodio.gitlens - - editorconfig.editorconfig - - esbenp.prettier-vscode - - executablebookproject.myst-highlight - - github.vscode-github-actions - - github.vscode-pull-request-github - - ms-python.mypy-type-checker - - ms-python.python - - ms-python.vscode-pylance - - ms-toolsai.vscode-jupyter-cell-tags - - ms-vscode.live-server - - ms-vsliveshare.vsliveshare - - redhat.vscode-yaml - - ryanluker.vscode-coverage-gutters - - soulcode.vscode-unwanted-extensions - - stkb.rewrap - - streetsidesoftware.code-spell-checker - - tamasfe.even-better-toml - - yzhang.markdown-all-in-one diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b53e978d0..6de6e2a97 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -4,9 +4,7 @@ ci: skip: - check-jsonschema - mypy - - prettier - pyright - - taplo repos: - repo: meta @@ -14,11 +12,32 @@ repos: - id: check-hooks-apply - id: check-useless-excludes + - repo: https://github.com/ComPWA/policy + rev: 0.4.0 + hooks: + - id: check-dev-files + args: + - --doc-apt-packages=graphviz + - --dev-python-version=3.11 + - --no-prettierrc + - --pin-requirements=monthly + - --repo-name=ampform + - --repo-title=AmpForm + - id: colab-toc-visible + - id: fix-nbformat-version + - id: remove-empty-tags + - id: set-nb-cells + args: + - --add-install-cell + - --additional-packages=IPython + - --extras-require=doc,viz + - repo: https://github.com/kynan/nbstripout rev: 0.7.1 hooks: - id: nbstripout args: + - --drop-empty-cells - --extra-keys - | cell.attachments @@ -41,28 +60,8 @@ repos: metadata.varInspector metadata.vscode - - repo: https://github.com/ComPWA/policy - rev: 0.3.18 - hooks: - - id: check-dev-files - args: - - --doc-apt-packages=graphviz - - --dev-python-version=3.11 - - --no-prettierrc - - --pin-requirements=monthly - - --repo-name=ampform - - --repo-title=AmpForm - - id: colab-toc-visible - - id: fix-nbformat-version - - id: remove-empty-tags - - id: set-nb-cells - args: - - --add-install-cell - - --additional-packages=IPython - - --extras-require=doc,viz - - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.5.6 + rev: v0.6.4 hooks: - id: ruff args: [--fix] @@ -98,15 +97,15 @@ repos: )$ - id: trailing-whitespace - - repo: https://github.com/pre-commit/mirrors-prettier - rev: v4.0.0-alpha.8 + - repo: https://github.com/ComPWA/prettier-pre-commit + rev: v3.3.3 hooks: - id: prettier - - repo: https://github.com/ComPWA/mirrors-taplo - rev: v0.8.1 + - repo: https://github.com/ComPWA/taplo-pre-commit + rev: v0.9.3 hooks: - - id: taplo + - id: taplo-format - repo: https://github.com/pappasam/toml-sort rev: v0.23.1 @@ -116,7 +115,7 @@ repos: - --in-place - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.29.1 + rev: 0.29.2 hooks: - id: check-jsonschema name: Check CITATION.cff @@ -129,12 +128,12 @@ repos: pass_filenames: false - repo: https://github.com/streetsidesoftware/cspell-cli - rev: v8.13.1 + rev: v8.13.3 hooks: - id: cspell - repo: https://github.com/editorconfig-checker/editorconfig-checker.python - rev: 2.7.3 + rev: 3.0.3 hooks: - id: editorconfig-checker name: editorconfig @@ -155,6 +154,6 @@ repos: - python - repo: https://github.com/ComPWA/mirrors-pyright - rev: v1.1.374 + rev: v1.1.379 hooks: - id: pyright diff --git a/.vscode/extensions.json b/.vscode/extensions.json index bdab26bed..f6f5a2cf0 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -8,6 +8,7 @@ "executablebookproject.myst-highlight", "github.vscode-github-actions", "github.vscode-pull-request-github", + "mhutchie.git-graph", "ms-python.mypy-type-checker", "ms-python.python", "ms-python.vscode-pylance", diff --git a/.vscode/settings.json b/.vscode/settings.json index d72b71939..5a1269b02 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -37,7 +37,8 @@ "diffEditor.experimental.showMoves": true, "editor.formatOnSave": true, "files.associations": { - "**/.constraints/py*.txt": "pip-requirements" + "**/.constraints/py*.txt": "pip-requirements", + "**/pixi.lock": "yaml" }, "files.watcherExclude": { "**/*_cache/**": true, diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index eaf364270..324a59dd1 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,6 +1,5 @@ # How to contribute? [![Open in Visual Studio Code](https://img.shields.io/badge/vscode-open-blue?logo=visualstudiocode)](https://open.vscode.dev/ComPWA/ampform) -[![GitPod](https://img.shields.io/badge/gitpod-open-blue?logo=gitpod)](https://gitpod.io/#https://github.com/ComPWA/ampform) This package is part of the [ComPWA Organization](https://github.com/ComPWA). For more information about how to contribute to the packages, go to [compwa.github.io/develop](https://compwa.github.io/develop)! diff --git a/README.md b/README.md index ace86e5a1..03b11596c 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,6 @@ [![Binder](https://static.mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/ComPWA/ampform/stable?filepath=docs/usage) [![Google Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/ComPWA/ampform/blob/stable) [![Open in Visual Studio Code](https://img.shields.io/badge/vscode-open-blue?logo=visualstudiocode)](https://open.vscode.dev/ComPWA/ampform) -[![GitPod](https://img.shields.io/badge/gitpod-open-blue?logo=gitpod)](https://gitpod.io/#https://github.com/ComPWA/ampform) [![Documentation build status](https://readthedocs.org/projects/ampform/badge/?version=latest)](https://ampform.readthedocs.io) [![pre-commit.ci status](https://results.pre-commit.ci/badge/github/ComPWA/ampform/main.svg)](https://results.pre-commit.ci/latest/github/ComPWA/ampform/main) diff --git a/docs/conf.py b/docs/conf.py index d6f60ffd5..974c4dc10 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -72,7 +72,10 @@ def _get_dataclasses(module): "8.0.6": "8.0.5", "8.1.1": "8.1.2", }, - "mpl-interactions": {"0.24.1": "0.24.0"}, + "mpl-interactions": { + "0.24.1": "0.24.0", + "0.24.2": "0.24.0", + }, }) BRANCH = get_branch_name() diff --git a/environment.yml b/environment.yml index 2eb9cafb7..0e013abc4 100644 --- a/environment.yml +++ b/environment.yml @@ -8,6 +8,5 @@ dependencies: - pip: - -c .constraints/py3.11.txt -e .[dev] variables: - PRETTIER_LEGACY_CLI: 1 PYDEVD_DISABLE_FILE_VALIDATION: 1 PYTHONHASHSEED: 0 diff --git a/pyproject.toml b/pyproject.toml index 33db44fbe..ea651f9fd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -147,6 +147,8 @@ namespaces = false where = ["src"] [tool.setuptools_scm] +local_scheme = "no-local-version" +version_scheme = "post-release" write_to = "src/ampform/version.py" [tool.coverage.run] @@ -192,6 +194,133 @@ module = ["benchmarks.*", "tests.*"] ignore_errors = true module = ["typings.*"] +[tool.pixi.project] +channels = ["conda-forge"] +platforms = ["linux-64"] + +[tool.pixi.activation.env] +PRETTIER_LEGACY_CLI = "1" +PYDEVD_DISABLE_FILE_VALIDATION = "1" +PYTHONHASHSEED = "0" + +[tool.pixi.dependencies] +graphviz = "*" +python = "3.11.*" + +[tool.pixi.environments] +default = {features = [ + "all", + "dev", + "doc", + "jupyter", + "scipy", + "sty", + "test", + "types", + "viz", +]} + +[tool.pixi.feature.dev.tasks.bench] +cmd = """ +pytest benchmarks \ + --durations=0 \ + --benchmark-autosave \ + -k benchmark +""" + +[tool.pixi.feature.dev.tasks.ci] +depends_on = ["cov", "docnb", "linkcheck", "sty"] + +[tool.pixi.feature.dev.tasks.cov] +cmd = """ +pytest src tests \ + --cov-fail-under=75 \ + --cov-report=html \ + --cov-report=xml \ + --cov=ampform +""" + +[tool.pixi.feature.dev.tasks.doc] +cmd = """ +sphinx-build \ + --builder html \ + --keep-going \ + --show-traceback --fail-on-warning \ + docs/ docs/_build/html +""" +env = {FORCE_COLOR = "yes"} + +[tool.pixi.feature.dev.tasks.doclive] +cmd = """ +sphinx-autobuild \ + --builder html \ + --open-browser \ + --re-ignore '.*/__pycache__/.*' \ + --re-ignore '.*/.ipynb_checkpoints/.*' \ + --re-ignore '.*\\.gitignore' \ + --re-ignore '.*\\.tmp' \ + --re-ignore 'docs/_build/.*' \ + --re-ignore 'docs/_images/.*' \ + --re-ignore 'docs/.*\\.csv' \ + --re-ignore 'docs/.*\\.gif' \ + --re-ignore 'docs/.*\\.gv' \ + --re-ignore 'docs/.*\\.inv' \ + --re-ignore 'docs/.*\\.json' \ + --re-ignore 'docs/.*\\.pickle' \ + --re-ignore 'docs/.*\\.png' \ + --re-ignore 'docs/.*\\.svg' \ + --re-ignore 'docs/.*\\.yaml' \ + --re-ignore 'docs/.*\\.yml' \ + --re-ignore 'docs/api/.*' \ + --watch docs \ + --watch src \ + docs/ docs/_build/html +""" +env = {FORCE_COLOR = "yes"} + +[tool.pixi.feature.dev.tasks.docnb] +cmd = "pixi run doc" +env = {EXECUTE_NB = "yes", FORCE_COLOR = "yes"} + +[tool.pixi.feature.dev.tasks.docnb-force] +cmd = "pixi run doc" +env = {FORCE_COLOR = "yes", FORCE_EXECUTE_NB = "yes"} + +[tool.pixi.feature.dev.tasks.docnblive] +cmd = "pixi run doclive" +env = {EXECUTE_NB = "yes", FORCE_COLOR = "yes"} + +[tool.pixi.feature.dev.tasks.linkcheck] +cmd = """ +sphinx-build \ + --builder linkcheck \ + --show-traceback \ + docs/ docs/_build/linkcheck +""" +env = {FORCE_COLOR = "yes"} + +[tool.pixi.feature.dev.tasks.nb] +cmd = "pytest --nbmake docs" + +[tool.pixi.feature.dev.tasks.pydeps] +cmd = """ +pydeps ampform \ + -o module_structure.svg \ + --exclude *._* \ + --max-bacon=1 \ + --noshow +""" + +[tool.pixi.feature.dev.tasks.sty] +cmd = "pre-commit run -a" +env = {SKIP = "pyright"} + +[tool.pixi.feature.dev.tasks.tests] +cmd = "pytest" + +[tool.pixi.pypi-dependencies] +ampform = {path = ".", editable = true} + [tool.pyright] exclude = [ "**/.git", @@ -280,7 +409,6 @@ src = [ "src", "tests", ] -target-version = "py37" [tool.ruff.format] docstring-code-format = true @@ -343,9 +471,6 @@ known-third-party = ["sympy"] split-on-trailing-comma = false [tool.ruff.lint.per-file-ignores] -"**/docs/usage/dynamics.ipynb" = ["FURB118", "RUF027"] -"**/docs/usage/symplot.ipynb" = ["RUF027"] -"**/docs/usage/sympy.ipynb" = ["E731"] "*.ipynb" = [ "B018", "C408", @@ -370,6 +495,9 @@ split-on-trailing-comma = false "T20", "TCH00", ] +"**/docs/usage/dynamics.ipynb" = ["FURB118", "RUF027"] +"**/docs/usage/symplot.ipynb" = ["RUF027"] +"**/docs/usage/sympy.ipynb" = ["E731"] "benchmarks/*" = [ "D", "INP001", @@ -432,6 +560,5 @@ sort_first = [ "tool.setuptools", "tool.setuptools_scm", ] -sort_table_keys = true spaces_indent_inline_array = 4 trailing_comma_inline_array = true diff --git a/src/ampform/helicity/align/_spin.py b/src/ampform/helicity/align/_spin.py index 8cbc2658a..91f2709ba 100644 --- a/src/ampform/helicity/align/_spin.py +++ b/src/ampform/helicity/align/_spin.py @@ -26,7 +26,7 @@ def create_spin_range( projection = Decimal(-spin_magnitude_float) while projection <= spin_magnitude_float: if projection == -0.0: - projection = Decimal(0.0) + projection = Decimal("0.0") spin_projections.append(float(projection)) projection += 1 if no_zero_spin and len(spin_projections) > 1: diff --git a/tox.ini b/tox.ini index 6eb9f1824..481dffb75 100644 --- a/tox.ini +++ b/tox.ini @@ -47,9 +47,9 @@ allowlist_externals = sphinx-build commands = sphinx-build \ + --builder html \ --keep-going \ - -TW \ - -b html \ + --show-traceback --fail-on-warning \ docs/ docs/_build/html description = Build documentation and API through Sphinx @@ -63,11 +63,14 @@ allowlist_externals = sphinx-autobuild commands = sphinx-autobuild \ + --builder html \ --open-browser \ - --re-ignore .*/.ipynb_checkpoints/.* \ --re-ignore .*/__pycache__/.* \ + --re-ignore .*/.ipynb_checkpoints/.* \ --re-ignore .*\.gitignore \ --re-ignore .*\.tmp \ + --re-ignore docs/_build/.* \ + --re-ignore docs/_images/.* \ --re-ignore docs/.*\.csv \ --re-ignore docs/.*\.gif \ --re-ignore docs/.*\.gv \ @@ -78,12 +81,9 @@ commands = --re-ignore docs/.*\.svg \ --re-ignore docs/.*\.yaml \ --re-ignore docs/.*\.yml \ - --re-ignore docs/_build/.* \ - --re-ignore docs/_images/.* \ --re-ignore docs/api/.* \ --watch docs \ --watch src \ - -b html \ docs/ docs/_build/html description = Set up a server to directly preview changes to the HTML pages @@ -97,9 +97,9 @@ allowlist_externals = sphinx-build commands = sphinx-build \ + --builder html \ --keep-going \ - -TW \ - -b html \ + --show-traceback --fail-on-warning \ docs/ docs/_build/html description = Build documentation through Sphinx WITH output of Jupyter notebooks @@ -114,11 +114,14 @@ allowlist_externals = sphinx-autobuild commands = sphinx-autobuild \ + --builder html \ --open-browser \ - --re-ignore .*/.ipynb_checkpoints/.* \ --re-ignore .*/__pycache__/.* \ + --re-ignore .*/.ipynb_checkpoints/.* \ --re-ignore .*\.gitignore \ --re-ignore .*\.tmp \ + --re-ignore docs/_build/.* \ + --re-ignore docs/_images/.* \ --re-ignore docs/.*\.csv \ --re-ignore docs/.*\.gif \ --re-ignore docs/.*\.gv \ @@ -129,12 +132,9 @@ commands = --re-ignore docs/.*\.svg \ --re-ignore docs/.*\.yaml \ --re-ignore docs/.*\.yml \ - --re-ignore docs/_build/.* \ - --re-ignore docs/_images/.* \ --re-ignore docs/api/.* \ --watch docs \ --watch src \ - -b html \ docs/ docs/_build/html description = Set up a server to directly preview changes to the HTML pages @@ -150,7 +150,7 @@ allowlist_externals = commands = sphinx-build \ --keep-going \ - -b html \ + --builder html \ -nW \ docs/ docs/_build/html description = @@ -175,8 +175,8 @@ allowlist_externals = sphinx-build commands = sphinx-build \ - -T \ - -b linkcheck \ + --builder linkcheck \ + --show-traceback \ docs/ docs/_build/linkcheck description = Check external links in the documentation (requires internet connection)