Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Mar 7, 2024
1 parent f34c5ed commit 3a2f478
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 9 deletions.
38 changes: 30 additions & 8 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
"editor.formatOnSave": false
},
"[git-commit]": {
"editor.rulers": [72],
"editor.rulers": [
72
],
"rewrap.wrappingColumn": 72
},
"[json]": {
Expand All @@ -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,
Expand All @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/tensorwaves/optimizer/minuit.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = (
Expand Down

0 comments on commit 3a2f478

Please sign in to comment.