diff --git a/docs/adr/001/operators.ipynb b/docs/adr/001/operators.ipynb index 24419370..41d2f410 100644 --- a/docs/adr/001/operators.ipynb +++ b/docs/adr/001/operators.ipynb @@ -265,8 +265,8 @@ " return self.opn(self.op1.eval())\n", "\n", "\n", - "asMagicNumber = (\n", - " lambda x: x if isinstance(x, MagicNumber) else Constant(x) # noqa: E731\n", + "asMagicNumber = lambda x: ( # noqa: E731\n", + " x if isinstance(x, MagicNumber) else Constant(x)\n", ")\n", "asMagicNumber(2).eval()" ] diff --git a/docs/conf.py b/docs/conf.py index 8892b218..5305be85 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -266,6 +266,7 @@ def get_minor_version(package_name: str) -> str: linkcheck_ignore = [ "http://127.0.0.1:8000", "https://atom.io", # often instable + "https://doi.org/10.1002/andp.19955070504", # 403 for onlinelibrary.wiley.com "https://github.com/organizations/ComPWA/settings/repository-defaults", # private "https://github.com/orgs/ComPWA/projects/5", # private "https://github.com/orgs/ComPWA/projects/6", # private diff --git a/docs/report/017.ipynb b/docs/report/017.ipynb index b39c530e..5f570ba8 100644 --- a/docs/report/017.ipynb +++ b/docs/report/017.ipynb @@ -597,13 +597,15 @@ " T1: T0 / 3 - r * sp.cos(theta),\n", " T2: T0 / 3 - r * sp.cos(theta + 2 * sp.pi / 3),\n", " T3: T0 / 3 - r * sp.cos(theta + 4 * sp.pi / 3),\n", - " T0: m0**2\n", - " + m1**2\n", - " + m2**2\n", - " + m3**2\n", - " - (m2 + m3) ** 2\n", - " - (m1 + m3) ** 2\n", - " - (m1 + m2) ** 2,\n", + " T0: (\n", + " m0**2\n", + " + m1**2\n", + " + m2**2\n", + " + m3**2\n", + " - (m2 + m3) ** 2\n", + " - (m1 + m3) ** 2\n", + " - (m1 + m2) ** 2\n", + " ),\n", "}" ] }, diff --git a/docs/report/020.ipynb b/docs/report/020.ipynb index 5ed637f9..4d02b171 100644 --- a/docs/report/020.ipynb +++ b/docs/report/020.ipynb @@ -552,8 +552,9 @@ "outputs": [], "source": [ "initial_parameters = {\n", - " R\"C_{J/\\psi(1S) \\to {f_{0}(1500)}_{0} \\gamma_{+1}; f_{0}(1500) \\to \\pi^{0}_{0} \\pi^{0}_{0}}\": 1.0\n", - " + 0.0j,\n", + " R\"C_{J/\\psi(1S) \\to {f_{0}(1500)}_{0} \\gamma_{+1}; f_{0}(1500) \\to \\pi^{0}_{0} \\pi^{0}_{0}}\": (\n", + " 1.0 + 0.0j\n", + " ),\n", " \"m_{f_{0}(500)}\": 0.4,\n", " \"m_{f_{0}(980)}\": 0.88,\n", " \"m_{f_{0}(1370)}\": 1.22,\n", diff --git a/tox.ini b/tox.ini index 062be941..8cf07ab3 100644 --- a/tox.ini +++ b/tox.ini @@ -2,21 +2,13 @@ envlist = doc, sty, -passenv = PYTHONPATH skip_install = True skip_missing_interpreters = True skipsdist = True [testenv:doc] -description = - Build documentation and API through Sphinx allowlist_externals = sphinx-build -passenv = - EXECUTE_NB - GITHUB_REPO - GITHUB_TOKEN - READTHEDOCS_VERSION commands = sphinx-build \ --color \ @@ -24,18 +16,15 @@ commands = -TW \ -b html \ docs/ docs/_build/html +description = + Build documentation and API through Sphinx +passenv = * +setenv = + FORCE_COLOR = yes [testenv:doclive] -description = - Set up a server to directly preview changes to the HTML pages allowlist_externals = sphinx-autobuild -passenv = - EXECUTE_NB - GITHUB_REPO - GITHUB_TOKEN - READTHEDOCS_VERSION - TERM commands = sphinx-autobuild \ --open-browser \ @@ -55,16 +44,13 @@ commands = --re-ignore docs/_build/.* \ --watch docs \ docs/ docs/_build/html - -[testenv:docnb] description = - Build documentation through Sphinx WITH output of Jupyter notebooks -passenv = - GITHUB_REPO - GITHUB_TOKEN - READTHEDOCS_VERSION + Set up a server to directly preview changes to the HTML pages +passenv = * setenv = - EXECUTE_NB = "yes" + FORCE_COLOR = yes + +[testenv:docnb] allowlist_externals = sphinx-build commands = @@ -74,36 +60,36 @@ commands = -TW \ -b html \ docs/ docs/_build/html +description = + Build documentation through Sphinx WITH output of Jupyter notebooks +passenv = * +setenv = + EXECUTE_NB = yes + FORCE_COLOR = yes [testenv:docnb-force] -description = - Execute ALL Jupyter notebooks and build documentation with Sphinx allowlist_externals = sphinx-build -passenv = - READTHEDOCS_VERSION - TERM +commands = + sphinx-build -nW --keep-going -b html docs/ docs/_build/html +description = + Execute ALL Jupyter notebooks and build documentation with Sphinx +passenv = * setenv = + FORCE_COLOR = yes FORCE_EXECUTE_NB = yes PYTHONHASHSEED = 0 -commands = - sphinx-build -nW --keep-going -b html docs/ docs/_build/html [testenv:jcache] -description = - Inspect Jupyter cache allowlist_externals = jcache changedir = docs/_build commands = jcache {posargs:notebook list} +description = + Inspect Jupyter cache [testenv:linkcheck] -description = - Check external links in the documentation (requires internet connection) -passenv = - EXECUTE_NB - READTHEDOCS_VERSION allowlist_externals = sphinx-build commands = @@ -112,23 +98,27 @@ commands = -T \ -b linkcheck \ docs/ docs/_build/linkcheck +description = + Check external links in the documentation (requires internet connection) +passenv = * +setenv = + FORCE_COLOR = yes [testenv:nb] -description = - Run all notebooks with pytest allowlist_externals = pytest -passenv = - EXECUTE_NB commands = pytest --nbmake {posargs:docs} +description = + Run all notebooks with pytest +passenv = * [testenv:sty] -description = - Perform all linting, formatting, and spelling checks allowlist_externals = pre-commit -setenv = - SKIP = pyright commands = pre-commit run {posargs} -a +description = + Perform all linting, formatting, and spelling checks +setenv = + SKIP = pyright