diff --git a/.vscode/settings.json b/.vscode/settings.json index 3f8026f0..d7019a85 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -3,7 +3,9 @@ "editor.formatOnSave": false }, "[git-commit]": { - "editor.rulers": [72], + "editor.rulers": [ + 72 + ], "rewrap.wrappingColumn": 72 }, "[json]": { @@ -20,12 +22,16 @@ "source.organizeImports": "explicit" }, "editor.defaultFormatter": "charliermarsh.ruff", - "editor.rulers": [88] + "editor.rulers": [ + 88 + ] }, "[yaml]": { "editor.defaultFormatter": "esbenp.prettier-vscode" }, - "coverage-gutters.coverageFileNames": ["coverage.xml"], + "coverage-gutters.coverageFileNames": [ + "coverage.xml" + ], "coverage-gutters.coverageReportFileName": "**/htmlcov/index.html", "coverage-gutters.showGutterCoverage": false, "coverage-gutters.showLineCoverage": true, @@ -40,32 +46,48 @@ }, "git.rebaseWhenSync": true, "github-actions.workflows.pinned.refresh.enabled": true, - "github-actions.workflows.pinned.workflows": [".github/workflows/ci.yml"], + "github-actions.workflows.pinned.workflows": [ + ".github/workflows/ci.yml" + ], "gitlens.telemetry.enabled": false, "json.schemas": [ { - "fileMatch": ["*particle*.json"], + "fileMatch": [ + "*particle*.json" + ], "url": "https://raw.githubusercontent.com/ComPWA/qrules/0.8.0a1/src/qrules/particle-validation.json" }, { - "fileMatch": [".zenodo.json"], + "fileMatch": [ + ".zenodo.json" + ], "url": "https://zenodo.org/schemas/deposits/records/legacyrecord.json" } ], "livePreview.defaultPreviewPath": "docs/_build/html", "multiDiffEditor.experimental.enabled": true, - "mypy-type-checker.args": ["--config-file=${workspaceFolder}/pyproject.toml"], + "mypy-type-checker.args": [ + "--config-file=${workspaceFolder}/pyproject.toml" + ], "mypy-type-checker.importStrategy": "fromEnvironment", + "notebook.codeActionsOnSave": { + "notebook.source.organizeImports": "explicit" + }, + "notebook.formatOnSave.enabled": true, "notebook.gotoSymbols.showAllSymbols": true, "python.analysis.autoImportCompletions": false, "python.analysis.inlayHints.pytestParameters": true, "python.analysis.typeCheckingMode": "strict", - "python.testing.pytestArgs": ["--color=no", "--no-cov"], + "python.testing.pytestArgs": [ + "--color=no", + "--no-cov" + ], "python.testing.pytestEnabled": true, "python.testing.unittestEnabled": false, "redhat.telemetry.enabled": false, "rewrap.wrappingColumn": 88, "ruff.enable": true, + "ruff.importStrategy": "fromEnvironment", "ruff.organizeImports": true, "search.exclude": { ".constraints/*.txt": true, diff --git a/src/tensorwaves/optimizer/minuit.py b/src/tensorwaves/optimizer/minuit.py index 756737e3..bde546ae 100644 --- a/src/tensorwaves/optimizer/minuit.py +++ b/src/tensorwaves/optimizer/minuit.py @@ -115,7 +115,7 @@ def wrapped_gradient(pars: list) -> Iterable[float]: name=tuple(flattened_parameters), ) minuit.errors = tuple( - 0.1 * abs(x) if abs(x) != 0.0 else 0.1 # noqa: PLR2004 + 0.1 * abs(x) if abs(x) != 0.0 else 0.1 for x in flattened_parameters.values() ) minuit.errordef = (