diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0e7eed5b..fa6eb5af 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,6 +28,9 @@ on: jobs: doc: uses: ComPWA/actions/.github/workflows/ci-docs.yml@v1 + permissions: + pages: write + id-token: write with: apt-packages: graphviz specific-pip-packages: ${{ inputs.specific-pip-packages }} diff --git a/.vscode/settings.json b/.vscode/settings.json index 536485e5..308bb550 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -23,11 +23,11 @@ "[yaml]": { "editor.defaultFormatter": "esbenp.prettier-vscode" }, + "cSpell.enabled": true, "coverage-gutters.coverageFileNames": ["coverage.xml"], "coverage-gutters.coverageReportFileName": "**/htmlcov/index.html", "coverage-gutters.showGutterCoverage": false, "coverage-gutters.showLineCoverage": true, - "cSpell.enabled": true, "editor.formatOnSave": true, "editor.rulers": [88], "files.watcherExclude": { @@ -50,6 +50,7 @@ } ], "livePreview.defaultPreviewPath": "docs/_build/html", + "mypy-type-checker.args": ["--config-file", "pyproject.toml"], "mypy-type-checker.importStrategy": "fromEnvironment", "python.analysis.autoImportCompletions": false, "python.analysis.inlayHints.pytestParameters": true, diff --git a/docs/amplitude-analysis.ipynb b/docs/amplitude-analysis.ipynb index f964af05..78819bda 100644 --- a/docs/amplitude-analysis.ipynb +++ b/docs/amplitude-analysis.ipynb @@ -1730,7 +1730,7 @@ "outputs": [], "source": [ "n_real_par = fit_result.count_number_of_parameters(complex_twice=True)\n", - "n_events = len(list(data.values())[0])\n", + "n_events = len(next(iter(data.values())))\n", "log_likelihood = -fit_result.estimator_value\n", "\n", "aic = 2 * n_real_par - 2 * log_likelihood\n",