diff --git a/.constraints/py3.10.txt b/.constraints/py3.10.txt index f1bfc5aab..f70c4e9ca 100644 --- a/.constraints/py3.10.txt +++ b/.constraints/py3.10.txt @@ -9,7 +9,7 @@ anyio==3.6.2 aquirdturtle-collapsible-headings==3.1.0 argon2-cffi==21.3.0 argon2-cffi-bindings==21.2.0 -astroid==2.12.12 +astroid==2.12.13 asttokens==2.1.0 attrs==22.1.0 babel==2.11.0 @@ -34,12 +34,12 @@ dill==0.3.6 distlib==0.3.6 docutils==0.17.1 entrypoints==0.4 -exceptiongroup==1.0.0 +exceptiongroup==1.0.4 execnet==1.9.0 executing==1.2.0 fastjsonschema==2.16.2 filelock==3.8.0 -flake8==5.0.4 +flake8==6.0.0 flake8-blind-except==0.2.1 flake8-bugbear==22.10.27 flake8-builtins==2.0.1 @@ -47,40 +47,40 @@ flake8-comprehensions==3.10.1 flake8-future-annotations==1.0.0 flake8-plugin-utils==1.3.2 flake8-pytest-style==1.6.0 -flake8-rst-docstrings==0.2.7 +flake8-rst-docstrings==0.3.0 flake8-type-ignore==0.1.0.post2 ; python_version >= "3.8.0" flake8-use-fstring==1.4 fonttools==4.38.0 future==0.18.2 gprof2dot==2022.7.29 graphviz==0.20.1 -greenlet==2.0.0 +greenlet==2.0.1 hepunits==2.3.0 -identify==2.5.8 +identify==2.5.9 idna==3.4 imagesize==1.4.1 -importlib-metadata==5.0.0 +importlib-metadata==5.1.0 iniconfig==1.1.1 -ipykernel==6.17.0 +ipykernel==6.17.1 ipympl==0.9.2 ipython==8.6.0 ipython-genutils==0.2.0 ipywidgets==8.0.2 isort==5.10.1 -jedi==0.18.1 +jedi==0.18.2 jinja2==3.1.2 json5==0.9.10 -jsonschema==4.16.0 +jsonschema==4.17.1 jupyter-cache==0.5.0 -jupyter-client==7.4.4 -jupyter-core==4.11.2 -jupyter-server==1.21.0 +jupyter-client==7.4.7 +jupyter-core==5.0.0 +jupyter-server==1.23.3 jupyterlab==3.5.0 jupyterlab-code-formatter==1.5.3 jupyterlab-markup==1.1.0 jupyterlab-myst==0.1.6 ; python_version >= "3.7.0" jupyterlab-pygments==0.2.2 -jupyterlab-server==2.16.2 +jupyterlab-server==2.16.3 jupyterlab-widgets==3.0.3 kiwisolver==1.4.4 latexcodec==2.0.1 @@ -89,7 +89,7 @@ livereload==2.6.3 mando==0.6.4 markdown-it-py==2.1.0 markupsafe==2.1.1 -matplotlib==3.6.1 +matplotlib==3.6.2 matplotlib-inline==0.1.6 mccabe==0.7.0 mdit-py-plugins==0.3.1 @@ -97,50 +97,50 @@ mdurl==0.1.2 mistune==2.0.4 mpl-interactions==0.22.0 mpmath==1.2.1 -mypy==0.982 +mypy==0.991 mypy-extensions==0.4.3 myst-nb==0.17.1 myst-parser==0.18.1 -nbclassic==0.4.7 +nbclassic==0.4.8 nbclient==0.5.13 -nbconvert==7.2.3 +nbconvert==7.2.5 nbformat==5.7.0 nbmake==1.3.0 nest-asyncio==1.5.6 nodeenv==1.7.0 notebook==6.5.2 -notebook-shim==0.2.0 -numpy==1.23.4 +notebook-shim==0.2.2 +numpy==1.23.5 packaging==21.3 pandocfilters==1.5.0 parso==0.8.3 -particle==0.20.1 -pathspec==0.10.1 +particle==0.21.0 +pathspec==0.10.2 pep8-naming==0.13.2 pexpect==4.8.0 pickleshare==0.7.5 pillow==9.3.0 -platformdirs==2.5.2 +platformdirs==2.5.4 pluggy==1.0.0 pre-commit==2.20.0 prometheus-client==0.15.0 -prompt-toolkit==3.0.31 -psutil==5.9.3 +prompt-toolkit==3.0.33 +psutil==5.9.4 ptyprocess==0.7.0 pure-eval==0.2.2 py==1.11.0 pybtex==0.24.0 pybtex-docutils==1.0.2 -pycodestyle==2.9.1 +pycodestyle==2.10.0 pycparser==2.21 pydantic==1.10.2 pydata-sphinx-theme==0.8.1 pydocstyle==6.1.1 -pyflakes==2.5.0 +pyflakes==3.0.1 pygments==2.13.0 -pylint==2.15.5 +pylint==2.15.6 pyparsing==3.0.9 -pyrsistent==0.19.1 +pyrsistent==0.19.2 pytest==7.2.0 pytest-cov==4.0.0 pytest-profiling==1.7.0 @@ -163,9 +163,9 @@ soupsieve==2.3.2.post1 sphinx==4.5.0 sphinx-autobuild==2021.3.14 sphinx-book-theme==0.3.3 -sphinx-codeautolink==0.12.0 +sphinx-codeautolink==0.12.1 sphinx-comments==0.0.3 -sphinx-copybutton==0.5.0 +sphinx-copybutton==0.5.1 sphinx-design==0.3.0 sphinx-thebe==0.1.2 sphinx-togglebutton==0.3.2 @@ -177,8 +177,8 @@ sphinxcontrib-htmlhelp==2.0.0 sphinxcontrib-jsmath==1.0.1 sphinxcontrib-qthelp==1.0.3 sphinxcontrib-serializinghtml==1.1.5 -sqlalchemy==1.4.42 -stack-data==0.6.0 +sqlalchemy==1.4.44 +stack-data==0.6.1 sympy==1.11.1 tabulate==0.9.0 terminado==0.17.0 @@ -187,21 +187,21 @@ toml==0.10.2 tomli==2.0.1 tomlkit==0.11.6 tornado==6.2 -tox==3.27.0 +tox==3.27.1 tqdm==4.64.1 traitlets==5.5.0 types-docutils==0.19.1.1 types-pkg-resources==0.1.3 -types-requests==2.28.11.2 -types-setuptools==65.5.0.2 -types-urllib3==1.26.25.1 +types-requests==2.28.11.5 +types-setuptools==65.6.0.1 +types-urllib3==1.26.25.4 typing-extensions==4.4.0 -urllib3==1.26.12 -virtualenv==20.16.6 +urllib3==1.26.13 +virtualenv==20.16.7 wcwidth==0.2.5 webencodings==0.5.1 -websocket-client==1.4.1 -wheel==0.37.1 +websocket-client==1.4.2 +wheel==0.38.4 widgetsnbextension==4.0.3 wrapt==1.14.1 zipp==3.10.0 diff --git a/.constraints/py3.7.txt b/.constraints/py3.7.txt index 47354e9df..6a0955b0a 100644 --- a/.constraints/py3.7.txt +++ b/.constraints/py3.7.txt @@ -9,7 +9,7 @@ anyio==3.6.2 aquirdturtle-collapsible-headings==3.1.0 argon2-cffi==21.3.0 argon2-cffi-bindings==21.2.0 -astroid==2.12.12 +astroid==2.12.13 attrs==22.1.0 babel==2.11.0 backcall==0.2.0 @@ -32,7 +32,7 @@ dill==0.3.6 distlib==0.3.6 docutils==0.17.1 entrypoints==0.4 -exceptiongroup==1.0.0 +exceptiongroup==1.0.4 execnet==1.9.0 fastjsonschema==2.16.2 filelock==3.8.0 @@ -44,15 +44,15 @@ flake8-comprehensions==3.10.1 flake8-future-annotations==1.0.0 flake8-plugin-utils==1.3.2 flake8-pytest-style==1.6.0 -flake8-rst-docstrings==0.2.7 +flake8-rst-docstrings==0.3.0 flake8-use-fstring==1.4 fonttools==4.38.0 future==0.18.2 gprof2dot==2022.7.29 graphviz==0.20.1 -greenlet==2.0.0 +greenlet==2.0.1 hepunits==2.3.0 -identify==2.5.8 +identify==2.5.9 idna==3.4 imagesize==1.4.1 importlib-metadata==4.2.0 ; python_version < "3.8.0" @@ -64,14 +64,14 @@ ipython==7.34.0 ipython-genutils==0.2.0 ipywidgets==8.0.2 isort==5.10.1 -jedi==0.18.1 +jedi==0.18.2 jinja2==3.1.2 json5==0.9.10 -jsonschema==4.16.0 +jsonschema==4.17.1 jupyter-cache==0.5.0 -jupyter-client==7.4.4 +jupyter-client==7.4.7 jupyter-core==4.11.2 -jupyter-server==1.21.0 +jupyter-server==1.23.3 jupyterlab==3.5.0 jupyterlab-code-formatter==1.5.3 jupyterlab-markup==1.1.0 @@ -94,36 +94,36 @@ mdurl==0.1.2 mistune==2.0.4 mpl-interactions==0.22.0 mpmath==1.2.1 -mypy==0.982 +mypy==0.991 mypy-extensions==0.4.3 myst-nb==0.17.1 myst-parser==0.18.1 -nbclassic==0.4.7 +nbclassic==0.4.8 nbclient==0.5.13 -nbconvert==7.2.3 +nbconvert==7.2.5 nbformat==5.7.0 nbmake==1.3.0 nest-asyncio==1.5.6 nodeenv==1.7.0 notebook==6.5.2 -notebook-shim==0.2.0 +notebook-shim==0.2.2 numpy==1.21.6 packaging==21.3 pandocfilters==1.5.0 parso==0.8.3 -particle==0.20.1 -pathspec==0.10.1 +particle==0.21.0 +pathspec==0.10.2 pep8-naming==0.13.2 pexpect==4.8.0 pickleshare==0.7.5 pillow==9.3.0 pkgutil-resolve-name==1.3.10 -platformdirs==2.5.2 +platformdirs==2.5.4 pluggy==1.0.0 pre-commit==2.20.0 prometheus-client==0.15.0 -prompt-toolkit==3.0.31 -psutil==5.9.3 +prompt-toolkit==3.0.33 +psutil==5.9.4 ptyprocess==0.7.0 py==1.11.0 pybtex==0.24.0 @@ -135,9 +135,9 @@ pydata-sphinx-theme==0.8.1 pydocstyle==6.1.1 pyflakes==2.5.0 pygments==2.13.0 -pylint==2.15.5 +pylint==2.15.6 pyparsing==3.0.9 -pyrsistent==0.19.1 +pyrsistent==0.19.2 pytest==7.2.0 pytest-cov==4.0.0 pytest-profiling==1.7.0 @@ -161,9 +161,9 @@ soupsieve==2.3.2.post1 sphinx==4.3.2 ; python_version < "3.8.0" sphinx-autobuild==2021.3.14 sphinx-book-theme==0.3.3 -sphinx-codeautolink==0.12.0 +sphinx-codeautolink==0.12.1 sphinx-comments==0.0.3 -sphinx-copybutton==0.5.0 +sphinx-copybutton==0.5.1 sphinx-design==0.3.0 sphinx-thebe==0.1.2 sphinx-togglebutton==0.3.2 @@ -175,7 +175,7 @@ sphinxcontrib-htmlhelp==2.0.0 sphinxcontrib-jsmath==1.0.1 sphinxcontrib-qthelp==1.0.3 sphinxcontrib-serializinghtml==1.1.5 -sqlalchemy==1.4.42 +sqlalchemy==1.4.44 sympy==1.10.1 tabulate==0.9.0 terminado==0.17.0 @@ -184,22 +184,22 @@ toml==0.10.2 tomli==2.0.1 tomlkit==0.11.6 tornado==6.2 -tox==3.27.0 +tox==3.27.1 tqdm==4.64.1 traitlets==5.5.0 typed-ast==1.5.4 types-docutils==0.19.1.1 types-pkg-resources==0.1.3 -types-requests==2.28.11.2 -types-setuptools==65.5.0.2 -types-urllib3==1.26.25.1 +types-requests==2.28.11.5 +types-setuptools==65.6.0.1 +types-urllib3==1.26.25.4 typing-extensions==4.4.0 ; python_version < "3.8.0" -urllib3==1.26.12 +urllib3==1.26.13 virtualenv==20.15.1 ; python_version < "3.8.0" wcwidth==0.2.5 webencodings==0.5.1 -websocket-client==1.4.1 -wheel==0.37.1 +websocket-client==1.4.2 +wheel==0.38.4 widgetsnbextension==4.0.3 wrapt==1.14.1 zipp==3.10.0 diff --git a/.constraints/py3.8.txt b/.constraints/py3.8.txt index 7d5883e12..68b4f40b6 100644 --- a/.constraints/py3.8.txt +++ b/.constraints/py3.8.txt @@ -9,7 +9,7 @@ anyio==3.6.2 aquirdturtle-collapsible-headings==3.1.0 argon2-cffi==21.3.0 argon2-cffi-bindings==21.2.0 -astroid==2.12.12 +astroid==2.12.13 asttokens==2.1.0 attrs==22.1.0 babel==2.11.0 @@ -34,12 +34,12 @@ dill==0.3.6 distlib==0.3.6 docutils==0.17.1 entrypoints==0.4 -exceptiongroup==1.0.0 +exceptiongroup==1.0.4 execnet==1.9.0 executing==1.2.0 fastjsonschema==2.16.2 filelock==3.8.0 -flake8==5.0.4 +flake8==6.0.0 flake8-blind-except==0.2.1 flake8-bugbear==22.10.27 flake8-builtins==2.0.1 @@ -47,41 +47,41 @@ flake8-comprehensions==3.10.1 flake8-future-annotations==1.0.0 flake8-plugin-utils==1.3.2 flake8-pytest-style==1.6.0 -flake8-rst-docstrings==0.2.7 +flake8-rst-docstrings==0.3.0 flake8-type-ignore==0.1.0.post2 ; python_version >= "3.8.0" flake8-use-fstring==1.4 fonttools==4.38.0 future==0.18.2 gprof2dot==2022.7.29 graphviz==0.20.1 -greenlet==2.0.0 +greenlet==2.0.1 hepunits==2.3.0 -identify==2.5.8 +identify==2.5.9 idna==3.4 imagesize==1.4.1 -importlib-metadata==5.0.0 +importlib-metadata==5.1.0 importlib-resources==5.10.0 iniconfig==1.1.1 -ipykernel==6.17.0 +ipykernel==6.17.1 ipympl==0.9.2 ipython==8.6.0 ipython-genutils==0.2.0 ipywidgets==8.0.2 isort==5.10.1 -jedi==0.18.1 +jedi==0.18.2 jinja2==3.1.2 json5==0.9.10 -jsonschema==4.16.0 +jsonschema==4.17.1 jupyter-cache==0.5.0 -jupyter-client==7.4.4 -jupyter-core==4.11.2 -jupyter-server==1.21.0 +jupyter-client==7.4.7 +jupyter-core==5.0.0 +jupyter-server==1.23.3 jupyterlab==3.5.0 jupyterlab-code-formatter==1.5.3 jupyterlab-markup==1.1.0 jupyterlab-myst==0.1.6 ; python_version >= "3.7.0" jupyterlab-pygments==0.2.2 -jupyterlab-server==2.16.2 +jupyterlab-server==2.16.3 jupyterlab-widgets==3.0.3 kiwisolver==1.4.4 latexcodec==2.0.1 @@ -90,7 +90,7 @@ livereload==2.6.3 mando==0.6.4 markdown-it-py==2.1.0 markupsafe==2.1.1 -matplotlib==3.6.1 +matplotlib==3.6.2 matplotlib-inline==0.1.6 mccabe==0.7.0 mdit-py-plugins==0.3.1 @@ -98,51 +98,51 @@ mdurl==0.1.2 mistune==2.0.4 mpl-interactions==0.22.0 mpmath==1.2.1 -mypy==0.982 +mypy==0.991 mypy-extensions==0.4.3 myst-nb==0.17.1 myst-parser==0.18.1 -nbclassic==0.4.7 +nbclassic==0.4.8 nbclient==0.5.13 -nbconvert==7.2.3 +nbconvert==7.2.5 nbformat==5.7.0 nbmake==1.3.0 nest-asyncio==1.5.6 nodeenv==1.7.0 notebook==6.5.2 -notebook-shim==0.2.0 -numpy==1.23.4 +notebook-shim==0.2.2 +numpy==1.23.5 packaging==21.3 pandocfilters==1.5.0 parso==0.8.3 -particle==0.20.1 -pathspec==0.10.1 +particle==0.21.0 +pathspec==0.10.2 pep8-naming==0.13.2 pexpect==4.8.0 pickleshare==0.7.5 pillow==9.3.0 pkgutil-resolve-name==1.3.10 -platformdirs==2.5.2 +platformdirs==2.5.4 pluggy==1.0.0 pre-commit==2.20.0 prometheus-client==0.15.0 -prompt-toolkit==3.0.31 -psutil==5.9.3 +prompt-toolkit==3.0.33 +psutil==5.9.4 ptyprocess==0.7.0 pure-eval==0.2.2 py==1.11.0 pybtex==0.24.0 pybtex-docutils==1.0.2 -pycodestyle==2.9.1 +pycodestyle==2.10.0 pycparser==2.21 pydantic==1.10.2 pydata-sphinx-theme==0.8.1 pydocstyle==6.1.1 -pyflakes==2.5.0 +pyflakes==3.0.1 pygments==2.13.0 -pylint==2.15.5 +pylint==2.15.6 pyparsing==3.0.9 -pyrsistent==0.19.1 +pyrsistent==0.19.2 pytest==7.2.0 pytest-cov==4.0.0 pytest-profiling==1.7.0 @@ -165,9 +165,9 @@ soupsieve==2.3.2.post1 sphinx==4.5.0 sphinx-autobuild==2021.3.14 sphinx-book-theme==0.3.3 -sphinx-codeautolink==0.12.0 +sphinx-codeautolink==0.12.1 sphinx-comments==0.0.3 -sphinx-copybutton==0.5.0 +sphinx-copybutton==0.5.1 sphinx-design==0.3.0 sphinx-thebe==0.1.2 sphinx-togglebutton==0.3.2 @@ -179,8 +179,8 @@ sphinxcontrib-htmlhelp==2.0.0 sphinxcontrib-jsmath==1.0.1 sphinxcontrib-qthelp==1.0.3 sphinxcontrib-serializinghtml==1.1.5 -sqlalchemy==1.4.42 -stack-data==0.6.0 +sqlalchemy==1.4.44 +stack-data==0.6.1 sympy==1.11.1 tabulate==0.9.0 terminado==0.17.0 @@ -189,21 +189,21 @@ toml==0.10.2 tomli==2.0.1 tomlkit==0.11.6 tornado==6.2 -tox==3.27.0 +tox==3.27.1 tqdm==4.64.1 traitlets==5.5.0 types-docutils==0.19.1.1 types-pkg-resources==0.1.3 -types-requests==2.28.11.2 -types-setuptools==65.5.0.2 -types-urllib3==1.26.25.1 +types-requests==2.28.11.5 +types-setuptools==65.6.0.1 +types-urllib3==1.26.25.4 typing-extensions==4.4.0 -urllib3==1.26.12 -virtualenv==20.16.6 +urllib3==1.26.13 +virtualenv==20.16.7 wcwidth==0.2.5 webencodings==0.5.1 -websocket-client==1.4.1 -wheel==0.37.1 +websocket-client==1.4.2 +wheel==0.38.4 widgetsnbextension==4.0.3 wrapt==1.14.1 zipp==3.10.0 diff --git a/.constraints/py3.9.txt b/.constraints/py3.9.txt index 29d7b4209..009548b2c 100644 --- a/.constraints/py3.9.txt +++ b/.constraints/py3.9.txt @@ -9,7 +9,7 @@ anyio==3.6.2 aquirdturtle-collapsible-headings==3.1.0 argon2-cffi==21.3.0 argon2-cffi-bindings==21.2.0 -astroid==2.12.12 +astroid==2.12.13 asttokens==2.1.0 attrs==22.1.0 babel==2.11.0 @@ -34,12 +34,12 @@ dill==0.3.6 distlib==0.3.6 docutils==0.17.1 entrypoints==0.4 -exceptiongroup==1.0.0 +exceptiongroup==1.0.4 execnet==1.9.0 executing==1.2.0 fastjsonschema==2.16.2 filelock==3.8.0 -flake8==5.0.4 +flake8==6.0.0 flake8-blind-except==0.2.1 flake8-bugbear==22.10.27 flake8-builtins==2.0.1 @@ -47,40 +47,40 @@ flake8-comprehensions==3.10.1 flake8-future-annotations==1.0.0 flake8-plugin-utils==1.3.2 flake8-pytest-style==1.6.0 -flake8-rst-docstrings==0.2.7 +flake8-rst-docstrings==0.3.0 flake8-type-ignore==0.1.0.post2 ; python_version >= "3.8.0" flake8-use-fstring==1.4 fonttools==4.38.0 future==0.18.2 gprof2dot==2022.7.29 graphviz==0.20.1 -greenlet==2.0.0 +greenlet==2.0.1 hepunits==2.3.0 -identify==2.5.8 +identify==2.5.9 idna==3.4 imagesize==1.4.1 -importlib-metadata==5.0.0 +importlib-metadata==5.1.0 iniconfig==1.1.1 -ipykernel==6.17.0 +ipykernel==6.17.1 ipympl==0.9.2 ipython==8.6.0 ipython-genutils==0.2.0 ipywidgets==8.0.2 isort==5.10.1 -jedi==0.18.1 +jedi==0.18.2 jinja2==3.1.2 json5==0.9.10 -jsonschema==4.16.0 +jsonschema==4.17.1 jupyter-cache==0.5.0 -jupyter-client==7.4.4 -jupyter-core==4.11.2 -jupyter-server==1.21.0 +jupyter-client==7.4.7 +jupyter-core==5.0.0 +jupyter-server==1.23.3 jupyterlab==3.5.0 jupyterlab-code-formatter==1.5.3 jupyterlab-markup==1.1.0 jupyterlab-myst==0.1.6 ; python_version >= "3.7.0" jupyterlab-pygments==0.2.2 -jupyterlab-server==2.16.2 +jupyterlab-server==2.16.3 jupyterlab-widgets==3.0.3 kiwisolver==1.4.4 latexcodec==2.0.1 @@ -89,7 +89,7 @@ livereload==2.6.3 mando==0.6.4 markdown-it-py==2.1.0 markupsafe==2.1.1 -matplotlib==3.6.1 +matplotlib==3.6.2 matplotlib-inline==0.1.6 mccabe==0.7.0 mdit-py-plugins==0.3.1 @@ -97,50 +97,50 @@ mdurl==0.1.2 mistune==2.0.4 mpl-interactions==0.22.0 mpmath==1.2.1 -mypy==0.982 +mypy==0.991 mypy-extensions==0.4.3 myst-nb==0.17.1 myst-parser==0.18.1 -nbclassic==0.4.7 +nbclassic==0.4.8 nbclient==0.5.13 -nbconvert==7.2.3 +nbconvert==7.2.5 nbformat==5.7.0 nbmake==1.3.0 nest-asyncio==1.5.6 nodeenv==1.7.0 notebook==6.5.2 -notebook-shim==0.2.0 -numpy==1.23.4 +notebook-shim==0.2.2 +numpy==1.23.5 packaging==21.3 pandocfilters==1.5.0 parso==0.8.3 -particle==0.20.1 -pathspec==0.10.1 +particle==0.21.0 +pathspec==0.10.2 pep8-naming==0.13.2 pexpect==4.8.0 pickleshare==0.7.5 pillow==9.3.0 -platformdirs==2.5.2 +platformdirs==2.5.4 pluggy==1.0.0 pre-commit==2.20.0 prometheus-client==0.15.0 -prompt-toolkit==3.0.31 -psutil==5.9.3 +prompt-toolkit==3.0.33 +psutil==5.9.4 ptyprocess==0.7.0 pure-eval==0.2.2 py==1.11.0 pybtex==0.24.0 pybtex-docutils==1.0.2 -pycodestyle==2.9.1 +pycodestyle==2.10.0 pycparser==2.21 pydantic==1.10.2 pydata-sphinx-theme==0.8.1 pydocstyle==6.1.1 -pyflakes==2.5.0 +pyflakes==3.0.1 pygments==2.13.0 -pylint==2.15.5 +pylint==2.15.6 pyparsing==3.0.9 -pyrsistent==0.19.1 +pyrsistent==0.19.2 pytest==7.2.0 pytest-cov==4.0.0 pytest-profiling==1.7.0 @@ -163,9 +163,9 @@ soupsieve==2.3.2.post1 sphinx==4.5.0 sphinx-autobuild==2021.3.14 sphinx-book-theme==0.3.3 -sphinx-codeautolink==0.12.0 +sphinx-codeautolink==0.12.1 sphinx-comments==0.0.3 -sphinx-copybutton==0.5.0 +sphinx-copybutton==0.5.1 sphinx-design==0.3.0 sphinx-thebe==0.1.2 sphinx-togglebutton==0.3.2 @@ -177,8 +177,8 @@ sphinxcontrib-htmlhelp==2.0.0 sphinxcontrib-jsmath==1.0.1 sphinxcontrib-qthelp==1.0.3 sphinxcontrib-serializinghtml==1.1.5 -sqlalchemy==1.4.42 -stack-data==0.6.0 +sqlalchemy==1.4.44 +stack-data==0.6.1 sympy==1.11.1 tabulate==0.9.0 terminado==0.17.0 @@ -187,21 +187,21 @@ toml==0.10.2 tomli==2.0.1 tomlkit==0.11.6 tornado==6.2 -tox==3.27.0 +tox==3.27.1 tqdm==4.64.1 traitlets==5.5.0 types-docutils==0.19.1.1 types-pkg-resources==0.1.3 -types-requests==2.28.11.2 -types-setuptools==65.5.0.2 -types-urllib3==1.26.25.1 +types-requests==2.28.11.5 +types-setuptools==65.6.0.1 +types-urllib3==1.26.25.4 typing-extensions==4.4.0 -urllib3==1.26.12 -virtualenv==20.16.6 +urllib3==1.26.13 +virtualenv==20.16.7 wcwidth==0.2.5 webencodings==0.5.1 -websocket-client==1.4.1 -wheel==0.37.1 +websocket-client==1.4.2 +wheel==0.38.4 widgetsnbextension==4.0.3 wrapt==1.14.1 zipp==3.10.0 diff --git a/.cspell.json b/.cspell.json index bc2fe7fb4..20f8688ca 100644 --- a/.cspell.json +++ b/.cspell.json @@ -1,299 +1,296 @@ { - "allowCompoundWords": true, - "enableFiletypes": [ - "git-commit", - "julia", - "jupyter" - ], - "flagWords": [ - "analyse", - "colour", - "comparision", - "favour", - "flavour", - "hte", - "optimise", - "paramater", - "parmater", - "transision", - "transisions" - ], - "ignorePaths": [ - "**/.cspell.json", - "*.bib", - "*.ico", - "*.root", - "*.rst_t", - "*.svg", - "*particle*.*ml", - ".constraints/*.txt", - ".flake8*", - ".gitignore", - ".gitpod.*", - ".mypy.ini", - ".pre-commit-config.yaml", - ".prettierignore", - ".pydocstyle*", - ".pylintrc", - ".readthedocs.yml", - ".vscode/*", - ".vscode/.gitignore", - ".zenodo.json", - "codecov.yml", - "Dockerfile", - "docs/_templates/*", - "docs/adr/*/*", - "docs/conf.py", - "labels.toml", - "Makefile", - "Manifest.toml", - "Project.toml", - "pyproject.toml", - "pyrightconfig.json", - "pytest.ini", - "requirements*.txt", - "setup.cfg", - "setup.py", - "tox.ini", - "typings" - ], - "ignoreWords": [ - "adrs", - "aitchison", - "arange", - "arccos", - "asdict", - "asdot", - "aslatex", - "automodule", - "Autoupdate", - "axhline", - "axvline", - "bdist", - "bgcolor", - "boldsymbol", - "byckling", - "cahn", - "cano", - "celltoolbar", - "clim", - "cmap", - "codacy", - "codecov", - "codemirror", - "colab", - "colorbar", - "commitlint", - "compwa", - "concat", - "conds", - "coolwarm", - "Dalitzplot", - "displaystyle", - "dlink", - "docnb", - "doctest", - "doctests", - "dotprint", - "dtype", - "dummified", - "dummifies", - "einsum", - "elif", - "epem", - "eqnarray", - "eval", - "evalf", - "expertsystem", - "facecolor", - "figsize", - "filterwarnings", - "flatte", - "fontcolor", - "fromdict", - "gellmann", - "genindex", - "getsource", - "gitpod", - "gridspec", - "hankel", - "heli", - "heurisch", - "imag", - "iplt", - "ipykernel", - "ipyplot", - "ipywidgets", - "isfunction", - "isidentifier", - "isinstance", - "jpsi", - "jupyterlab", - "katex", - "kernelspec", - "kmatrix", - "kutschke", - "kwargs", - "lambdifygenerated", - "lambdifying", - "linestyle", - "linewidth", - "linkcheck", - "linspace", - "macos", - "MAINT", - "marangotto", - "markdownlint", - "mathcal", - "mathrm", - "maxdepth", - "meijerg", - "meshgrid", - "mimetype", - "Minkowski", - "mkdir", - "modindex", - "multiline", - "nbconvert", - "nbformat", - "nbody", - "nbsphinx", - "ncols", - "ndarray", - "nonlocal", - "noqa", - "noreply", - "nowrap", - "nrows", - "nsimplify", - "numpycode", - "pandoc", - "pbar", - "pcolormesh", - "penwidth", - "permalinks", - "phsp", - "pids", - "pmatrix", - "precommit", - "prefactor", - "preorder", - "prereleased", - "pycode", - "pygments", - "pylance", - "pylintrc", - "pypi", - "pyproject", - "pyright", - "pytestconfig", - "rankdir", - "richman", - "rightarrow", - "risch", - "rtfd", - "savefig", - "sdist", - "seealso", - "sharex", - "sharey", - "startswith", - "suptitle", - "sympify", - "symplot", - "theano", - "ticklabels", - "tolist", - "unparse", - "unsrt", - "untracked", - "vectorize", - "virtualenv", - "virtualenvwrapper", - "vmax", - "vmin", - "wigners", - "wspace", - "xaxis", - "xdata", - "xlabel", - "xlim", - "xreplace", - "xticks", - "yaxis", - "ylabel", - "ylim", - "yticks" - ], - "language": "en-US", - "version": "0.2", - "words": [ - "ampform", - "analyticity", - "argand", - "blatt", - "bosonic", - "bottomness", - "breit", - "cayley", - "charmness", - "clebsch", - "combi", - "conda", - "dalitz", - "deepcopy", - "determinator", - "determinators", - "docstrings", - "façade", - "fermionic", - "flatté", - "functors", - "gell", - "gordan", - "graphviz", - "hankel", - "helicities", - "helicity", - "htmlcov", - "imap", - "ipynb", - "ipython", - "isort", - "isospin", - "itertools", - "jupyter", - "Källén", - "lambdification", - "lambdified", - "lambdify", - "lineshape", - "lineshapes", - "mathbb", - "matplotlib", - "Mikhasenko", - "mypy", - "nishijima", - "numpy", - "parametrizations", - "permutate", - "pydocstyle", - "pylint", - "pyplot", - "pytest", - "qrules", - "rsplit", - "setuptools", - "spflueger", - "struct", - "sympy", - "tensorflow", - "tensorwaves", - "toctree", - "topness", - "unitarity", - "venv", - "weisskopf", - "Zenodo" - ] + "allowCompoundWords": true, + "enableFiletypes": ["git-commit", "julia", "jupyter"], + "flagWords": [ + "analyse", + "colour", + "comparision", + "favour", + "flavour", + "hte", + "optimise", + "paramater", + "parmater", + "transision", + "transisions" + ], + "ignorePaths": [ + "**/.cspell.json", + "*.bib", + "*.ico", + "*.root", + "*.rst_t", + "*.svg", + "*particle*.*ml", + ".constraints/*.txt", + ".editorconfig", + ".flake8*", + ".gitignore", + ".gitpod.*", + ".mypy.ini", + ".pre-commit-config.yaml", + ".prettierignore", + ".pydocstyle*", + ".pylintrc", + ".readthedocs.yml", + ".vscode/*", + ".vscode/.gitignore", + ".zenodo.json", + "codecov.yml", + "Dockerfile", + "docs/_templates/*", + "docs/adr/*/*", + "docs/conf.py", + "labels.toml", + "Makefile", + "Manifest.toml", + "Project.toml", + "pyproject.toml", + "pyrightconfig.json", + "pytest.ini", + "requirements*.txt", + "setup.cfg", + "setup.py", + "tox.ini", + "typings" + ], + "ignoreWords": [ + "Autoupdate", + "Dalitzplot", + "MAINT", + "Minkowski", + "adrs", + "aitchison", + "arange", + "arccos", + "asdict", + "asdot", + "aslatex", + "automodule", + "axhline", + "axvline", + "bdist", + "bgcolor", + "boldsymbol", + "byckling", + "cahn", + "cano", + "celltoolbar", + "clim", + "cmap", + "codacy", + "codecov", + "codemirror", + "colab", + "colorbar", + "commitlint", + "compwa", + "concat", + "conds", + "coolwarm", + "displaystyle", + "dlink", + "docnb", + "doctest", + "doctests", + "dotprint", + "dtype", + "dummified", + "dummifies", + "einsum", + "elif", + "epem", + "eqnarray", + "eval", + "evalf", + "expertsystem", + "facecolor", + "figsize", + "filterwarnings", + "flatte", + "fontcolor", + "fromdict", + "gellmann", + "genindex", + "getsource", + "gitpod", + "gridspec", + "hankel", + "heli", + "heurisch", + "imag", + "iplt", + "ipykernel", + "ipyplot", + "ipywidgets", + "isfunction", + "isidentifier", + "isinstance", + "jpsi", + "jupyterlab", + "katex", + "kernelspec", + "kmatrix", + "kutschke", + "kwargs", + "lambdifygenerated", + "lambdifying", + "linestyle", + "linewidth", + "linkcheck", + "linspace", + "macos", + "marangotto", + "markdownlint", + "mathcal", + "mathrm", + "maxdepth", + "meijerg", + "meshgrid", + "mimetype", + "mkdir", + "modindex", + "multiline", + "nbconvert", + "nbformat", + "nbody", + "nbsphinx", + "ncols", + "ndarray", + "nonlocal", + "noqa", + "noreply", + "nowrap", + "nrows", + "nsimplify", + "numpycode", + "pandoc", + "pbar", + "pcolormesh", + "penwidth", + "permalinks", + "phsp", + "pids", + "pmatrix", + "precommit", + "prefactor", + "preorder", + "prereleased", + "pycode", + "pygments", + "pylance", + "pylintrc", + "pypi", + "pyproject", + "pyright", + "pytestconfig", + "rankdir", + "richman", + "rightarrow", + "risch", + "rtfd", + "savefig", + "sdist", + "seealso", + "sharex", + "sharey", + "startswith", + "suptitle", + "sympify", + "symplot", + "theano", + "ticklabels", + "tolist", + "unparse", + "unsrt", + "untracked", + "vectorize", + "virtualenv", + "virtualenvwrapper", + "vmax", + "vmin", + "wigners", + "wspace", + "xaxis", + "xdata", + "xlabel", + "xlim", + "xreplace", + "xticks", + "yaxis", + "ylabel", + "ylim", + "yticks" + ], + "language": "en-US", + "version": "0.2", + "words": [ + "ampform", + "analyticity", + "argand", + "blatt", + "bosonic", + "bottomness", + "breit", + "cayley", + "charmness", + "clebsch", + "combi", + "conda", + "dalitz", + "deepcopy", + "determinator", + "determinators", + "docstrings", + "façade", + "fermionic", + "flatté", + "functors", + "gell", + "gordan", + "graphviz", + "hankel", + "helicities", + "helicity", + "htmlcov", + "imap", + "ipynb", + "ipython", + "isort", + "isospin", + "itertools", + "jupyter", + "Källén", + "lambdification", + "lambdified", + "lambdify", + "lineshape", + "lineshapes", + "mathbb", + "matplotlib", + "Mikhasenko", + "mypy", + "nishijima", + "numpy", + "parametrizations", + "permutate", + "pydocstyle", + "pylint", + "pyplot", + "pytest", + "qrules", + "rsplit", + "setuptools", + "spflueger", + "struct", + "sympy", + "tensorflow", + "tensorwaves", + "toctree", + "topness", + "unitarity", + "venv", + "weisskopf", + "Zenodo" + ] } diff --git a/.editorconfig b/.editorconfig index c184b58e5..2737f6f80 100644 --- a/.editorconfig +++ b/.editorconfig @@ -8,14 +8,13 @@ insert_final_newline = true trim_trailing_whitespace = true [*.ipynb] -indent_size = 1 +indent_size = unset [*.{py,toml}] indent_size = 4 -# when adding words through vscode, this is the resulting output format -[.cspell.json] -indent_size = 4 +[LICENSE] +indent_size = unset [setup.cfg] indent_size = 4 diff --git a/.flake8 b/.flake8 index c615fbf40..338b6d134 100644 --- a/.flake8 +++ b/.flake8 @@ -17,6 +17,8 @@ ignore = E203 # allowed by black E231 + # already covered by black + E302 # https://github.com/psf/black#line-length E501 # should be possible to use {} in latex strings diff --git a/.github/workflows/ci-docs.yml b/.github/workflows/ci-docs.yml index c44cce26f..890a15c73 100644 --- a/.github/workflows/ci-docs.yml +++ b/.github/workflows/ci-docs.yml @@ -1,4 +1,6 @@ name: CI-docs +env: + PYTHONHASHSEED: "0" on: push: @@ -19,6 +21,14 @@ jobs: runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v3 + - uses: actions/cache@v3 + with: + key: | + ${{ github.workflow }}-${{ github.job }}-${{ runner.os }}-${{ hashFiles('.constraints/py3.*.txt', 'setup.cfg', 'src/**') }} + path: | + ./docs/_build + ~/.cache/pip/ + ~/.sympy-cache*/ - uses: actions/setup-python@v4 with: python-version: "3.8" diff --git a/.github/workflows/ci-style.yml b/.github/workflows/ci-style.yml index 23c01a751..da47a97d6 100644 --- a/.github/workflows/ci-style.yml +++ b/.github/workflows/ci-style.yml @@ -19,21 +19,27 @@ jobs: runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v3 - - name: Set up Python 3.8 - uses: actions/setup-python@v4 + - uses: actions/cache@v3 with: - python-version: 3.8 + key: | + ${{ github.workflow }}-${{ github.job }}-${{ runner.os }}-${{ hashFiles('.constraints/py3.*.txt', '.pre-commit-config.yaml') }} + path: | + .mypy_cache/ + ~/.cache/pip/ + ~/.cache/pre-commit/ + - uses: actions/setup-python@v4 + with: + python-version: "3.8" - name: Install dependencies run: | python -m pip install --upgrade pip pip install -c .constraints/py3.8.txt -e .[sty] - name: Run non-local pre-commit hooks - run: | + run: |- pre-commit run flake8 -a --color always pre-commit run mypy -a --color always pre-commit run pylint -a --color always - name: Run pre-commit hooks that don't work on pre-commit.ci - # cspell:ignore editorconfig - run: | + run: |- pre-commit run editorconfig-checker -a --color always pre-commit run pyright -a --color always diff --git a/.github/workflows/ci-tests.yml b/.github/workflows/ci-tests.yml index 0171b2072..96b6ba732 100644 --- a/.github/workflows/ci-tests.yml +++ b/.github/workflows/ci-tests.yml @@ -21,12 +21,21 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [ubuntu-20.04] - python-version: [3.7] + os: + - ubuntu-20.04 + python-version: + - "3.7" steps: - - uses: actions/checkout@master - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 + - uses: actions/checkout@v3 + - uses: actions/cache@v3 + with: + key: | + ${{ github.workflow }}-${{ github.job }}-${{ matrix.os }}-py${{ matrix.python-version }}-${{ hashFiles('.constraints/py3.*.txt', 'setup.cfg') }} + path: | + .pytest_cache + ~/.cache/pip/ + ~/.sympy-cache*/ + - uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} - name: Install dependencies @@ -53,7 +62,6 @@ jobs: fail-fast: false matrix: os: - - macos-11 - ubuntu-20.04 python-version: - "3.7" @@ -61,18 +69,22 @@ jobs: - "3.9" - "3.10" exclude: - - os: macos-11 - python-version: "3.8" - - os: macos-11 - python-version: "3.9" - - os: macos-11 - python-version: "3.10" - os: ubuntu-20.04 # coverage job python-version: "3.7" + include: + - os: macos-11 + python-version: "3.7" steps: - uses: actions/checkout@v3 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 + - uses: actions/cache@v3 + with: + key: | + ${{ github.workflow }}-${{ github.job }}-${{ matrix.os }}-py${{ matrix.python-version }}-${{ hashFiles('.constraints/py3.*.txt', 'setup.cfg') }} + path: | + .pytest_cache + ~/.cache/pip/ + ~/.sympy-cache*/ + - uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} - name: Install dependencies @@ -94,11 +106,19 @@ jobs: matrix: os: - ubuntu-20.04 - python-version: [3.7] + python-version: + - "3.7" steps: - uses: actions/checkout@v3 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 + - uses: actions/cache@v3 + with: + key: | + ${{ github.workflow }}-${{ github.job }}-${{ matrix.os }}-py${{ matrix.python-version }}-${{ hashFiles('.constraints/py3.*.txt', 'setup.cfg') }} + path: | + .pytest_cache + ~/.cache/pip/ + ~/.sympy-cache*/ + - uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} - name: Install dependencies diff --git a/.github/workflows/linkcheck.yml b/.github/workflows/linkcheck.yml index 91673c89d..0617a4e01 100644 --- a/.github/workflows/linkcheck.yml +++ b/.github/workflows/linkcheck.yml @@ -19,6 +19,12 @@ jobs: runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v3 + - uses: actions/cache@v3 + with: + key: | + ${{ github.workflow }}-${{ github.job }}-${{ runner.os }}-${{ hashFiles('.constraints/py3.*.txt', 'setup.cfg') }} + path: | + ~/.cache/pip/ - uses: actions/setup-python@v4 with: python-version: "3.8" diff --git a/.github/workflows/pr-linting.yml b/.github/workflows/pr-linting.yml index 12dcde033..4549863d1 100644 --- a/.github/workflows/pr-linting.yml +++ b/.github/workflows/pr-linting.yml @@ -28,6 +28,6 @@ jobs: name: Check title runs-on: ubuntu-20.04 steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v3 - run: npm install @commitlint/config-conventional - uses: JulienKode/pull-request-name-linter-action@v0.5.0 diff --git a/.github/workflows/requirements-cron.yml b/.github/workflows/requirements-cron.yml index 1390ca96a..629be6073 100644 --- a/.github/workflows/requirements-cron.yml +++ b/.github/workflows/requirements-cron.yml @@ -2,7 +2,7 @@ name: Requirements (scheduled) on: schedule: - - cron: "0 3 1 */1 *" + - cron: "0 3 7 */1 *" workflow_dispatch: jobs: diff --git a/.github/workflows/requirements-pr.yml b/.github/workflows/requirements-pr.yml index 99372fab7..254c98562 100644 --- a/.github/workflows/requirements-pr.yml +++ b/.github/workflows/requirements-pr.yml @@ -18,8 +18,9 @@ jobs: fetch-depth: 0 - name: Determine dependency changes run: | - DIFF="$(git diff origin/main --color -- .constraints .pre-commit-config.yaml setup.cfg)" - echo ::set-output name=diff::"${DIFF}" + echo 'diff<> $GITHUB_OUTPUT + git diff origin/main --color -- .constraints .pre-commit-config.yaml setup.cfg >> $GITHUB_OUTPUT + echo 'EOF' >> $GITHUB_OUTPUT id: diff outputs: diff: ${{ steps.diff.outputs.diff }} diff --git a/.gitpod.yml b/.gitpod.yml index 83f349407..de84e4e65 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -22,6 +22,9 @@ vscode: - esbenp.prettier-vscode - executablebookproject.myst-highlight - github.vscode-pull-request-github + - ms-python.flake8 + - ms-python.isort + - ms-python.pylint - ms-python.python - ms-python.vscode-pylance - ms-toolsai.vscode-jupyter-cell-tags diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 43d5e15d1..b2461e717 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -17,7 +17,7 @@ repos: - id: check-useless-excludes - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.3.0 + rev: v4.4.0 hooks: - id: check-ast - id: check-case-conflict @@ -41,7 +41,7 @@ repos: - id: trailing-whitespace - repo: https://github.com/ComPWA/repo-maintenance - rev: 0.0.149 + rev: 0.0.159 hooks: - id: check-dev-files args: @@ -65,7 +65,7 @@ repos: - id: blacken-docs - repo: https://github.com/streetsidesoftware/cspell-cli - rev: v6.13.0 + rev: v6.14.1 hooks: - id: cspell @@ -177,12 +177,12 @@ repos: - python - repo: https://github.com/ComPWA/mirrors-pyright - rev: v1.1.277 + rev: v1.1.281 hooks: - id: pyright - repo: https://github.com/asottile/pyupgrade - rev: v3.2.0 + rev: v3.2.2 hooks: - id: pyupgrade args: diff --git a/.prettierignore b/.prettierignore index 4fffca73c..ea965b83e 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,3 +1,2 @@ *.ipynb -.cspell.json LICENSE diff --git a/.vscode/extensions.json b/.vscode/extensions.json index 6a446759b..344467337 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -9,6 +9,9 @@ "esbenp.prettier-vscode", "executablebookproject.myst-highlight", "github.vscode-pull-request-github", + "ms-python.flake8", + "ms-python.isort", + "ms-python.pylint", "ms-python.python", "ms-python.vscode-pylance", "ms-toolsai.vscode-jupyter-cell-tags", diff --git a/.vscode/settings.json b/.vscode/settings.json index 562ac164f..b83ac6331 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -36,6 +36,7 @@ "**/.git/**": true, "**/.tox/**": true }, + "flake8.importStrategy": "fromEnvironment", "git.rebaseWhenSync": true, "github-actions.workflows.pinned.refresh.enabled": true, "github-actions.workflows.pinned.workflows": [ @@ -43,24 +44,26 @@ ".github/workflows/ci-docs.yml", ".github/workflows/ci-tests.yml" ], + "isort.check": true, + "isort.importStrategy": "fromEnvironment", "json.schemas": [ { "fileMatch": [".zenodo.json"], "url": "https://zenodo.org/schemas/deposits/records/legacyrecord.json" } ], + "pylint.importStrategy": "fromEnvironment", "python.analysis.autoImportCompletions": false, "python.analysis.diagnosticMode": "workspace", "python.analysis.typeCheckingMode": "strict", "python.formatting.provider": "black", "python.linting.banditEnabled": false, "python.linting.enabled": true, - "python.linting.flake8Enabled": true, + "python.linting.flake8Enabled": false, "python.linting.mypyEnabled": true, "python.linting.pydocstyleEnabled": true, "python.linting.pylamaEnabled": false, - "python.linting.pylintCategorySeverity.refactor": "Information", - "python.linting.pylintEnabled": true, + "python.linting.pylintEnabled": false, "python.testing.pytestArgs": ["--color=no", "--no-cov"], "python.testing.pytestEnabled": true, "python.testing.unittestEnabled": false, diff --git a/docs/_relink_references.py b/docs/_relink_references.py index 47630806d..21c7d775a 100644 --- a/docs/_relink_references.py +++ b/docs/_relink_references.py @@ -64,7 +64,7 @@ def _new_type_to_xref( target: str, - env: BuildEnvironment = None, + env: BuildEnvironment = None, # type: ignore[assignment] suppress_prefix: bool = False, ) -> pending_xref: reftype, target, title, refspecific = parse_reftarget(target, suppress_prefix) @@ -85,7 +85,7 @@ def _new_type_to_xref( # https://github.com/sphinx-doc/sphinx/blob/v4.3.2/sphinx/domains/python.py#L83-L107 def _new_type_to_xref( target: str, - env: BuildEnvironment = None, + env: BuildEnvironment = None, # type: ignore[assignment] suppress_prefix: bool = False, ) -> pending_xref: # pylint: disable=unused-argument diff --git a/docs/conf.py b/docs/conf.py index 3999b0ebc..dee1a57c8 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -12,7 +12,6 @@ import requests -# pyright: reportConstantRedefinition=false # pyright: reportMissingImports=false # pyright: reportUntypedBaseClass=false # pyright: reportUntypedFunctionDecorator=false @@ -47,11 +46,16 @@ author = "Common Partial Wave Analysis" # https://docs.readthedocs.io/en/stable/builds.html -BRANCH = os.environ.get("READTHEDOCS_VERSION", "stable") -if BRANCH == "latest": - BRANCH = "main" -if re.match(r"^\d+$", BRANCH): # PR preview - BRANCH = "stable" +def get_branch_name() -> str: + branch_name = os.environ.get("READTHEDOCS_VERSION", "stable") + if branch_name == "latest": + return "main" + if re.match(r"^\d+$", branch_name): # PR preview + return "stable" + return branch_name + + +BRANCH = get_branch_name() try: __VERSION = get_package_version(PACKAGE) @@ -338,6 +342,7 @@ def get_minor_version(package_name: str) -> str: "https://doi.org/10.1093/ptep/ptaa104", "https://home.fnal.gov/~kutschke/Angdist/angdist.ps", "https://hss-opus.ub.ruhr-uni-bochum.de", + "https://physique.cuso.ch", "https://suchung.web.cern.ch", ] diff --git a/pyrightconfig.json b/pyrightconfig.json index db4261754..db06ae8a0 100644 --- a/pyrightconfig.json +++ b/pyrightconfig.json @@ -1,6 +1,13 @@ { - "exclude": [".git", ".tox", "docs/_build", "docs/adr"], - "include": ["docs", "src", "tests"], + "exclude": [ + "**/__pycache__", + "**/_build", + "**/.git", + "**/.ipynb_checkpoints", + "**/.mypy_cache", + "**/.pytest_cache", + "**/.tox" + ], "reportGeneralTypeIssues": false, "reportIncompatibleMethodOverride": false, "reportMissingParameterType": false, @@ -17,6 +24,7 @@ "reportUnnecessaryComparison": false, "reportUnnecessaryContains": false, "reportUnnecessaryIsInstance": false, + "reportUntypedFunctionDecorator": false, "reportUnusedClass": true, "reportUnusedFunction": true, "reportUnusedImport": true, diff --git a/setup.cfg b/setup.cfg index cbc170a1f..fe8785cc2 100644 --- a/setup.cfg +++ b/setup.cfg @@ -104,7 +104,7 @@ flake8 = flake8-use-fstring pep8-naming mypy = - mypy >=0.570 # attrs support + mypy >=0.730 # error code support types-docutils types-pkg-resources types-requests @@ -120,16 +120,18 @@ sty = %(lint)s %(test)s # for pytest type hints pre-commit >=1.4.0 -dev = - %(all)s - %(doc)s - %(sty)s - %(test)s +jupyter = aquirdturtle_collapsible_headings jupyterlab jupyterlab-code-formatter jupyterlab-myst; python_version >="3.7.0" jupyterlab-server <2.16; python_version <"3.8.0" # https://github.com/ComPWA/ampform/actions/runs/3366808790/jobs/5583675396#step:3:84 +dev = + %(all)s + %(doc)s + %(jupyter)s + %(sty)s + %(test)s sphinx-autobuild tox >=1.9 # for skip_install, use_develop virtualenv <20.16; python_version <"3.8.0" # https://github.com/ComPWA/ampform/runs/7718392948?check_suite_focus=true#step:3:82 diff --git a/src/ampform/helicity/__init__.py b/src/ampform/helicity/__init__.py index dd421af04..99dfc2a4f 100644 --- a/src/ampform/helicity/__init__.py +++ b/src/ampform/helicity/__init__.py @@ -596,7 +596,7 @@ def _to_optional_set(values: Iterable[int] | None) -> set[int] | None: class BuilderConfiguration: """Configuration class for a `.HelicityAmplitudeBuilder`.""" - spin_alignment: SpinAlignment = field(validator=instance_of(SpinAlignment)) # type: ignore[misc] + spin_alignment: SpinAlignment = field(validator=instance_of(SpinAlignment)) # type: ignore[type-abstract] # noqa: TI002 """Method for :doc:`aligning spin `.""" scalar_initial_state_mass: bool = field(validator=instance_of(bool)) r"""Add initial state mass as scalar value to `.parameter_defaults`.