From fcc5a4369f1b656d489d1ec4a0c9687da862e0ba Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 20 Dec 2024 09:36:35 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- .pre-commit-config.yaml | 3 +++ .vscode/extensions.json | 1 + pyproject.toml | 2 +- script/makeComparison.py | 2 +- 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 658362c..42f1b6d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,6 +2,9 @@ ci: autoupdate_commit_msg: "MAINT: update lock files" autoupdate_schedule: quarterly + skip: + - uv-lock + repos: - repo: meta hooks: diff --git a/.vscode/extensions.json b/.vscode/extensions.json index 45b78d1..2117bf2 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -33,6 +33,7 @@ "ms-python.isort", "ms-python.mypy-type-checker", "ms-python.pylint", + "ms-toolsai.vscode-jupyter-slideshow", "streetsidesoftware.code-spell-checker", "travisillig.vscode-json-stable-stringify", "tyriar.sort-lines" diff --git a/pyproject.toml b/pyproject.toml index fad0ba3..d3145e0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -116,7 +116,7 @@ split-on-trailing-comma = false "RUF001", "S101", "T20", - "TCH00", + "TC00", ] "**/widget.ipynb" = ["ARG001", "ARG002", "S307"] "docs/*" = [ diff --git a/script/makeComparison.py b/script/makeComparison.py index 4694687..9b387ec 100644 --- a/script/makeComparison.py +++ b/script/makeComparison.py @@ -20,7 +20,7 @@ with open(".print_amplitudes.log") as file: for line in file: if "INTENSITY =" in line: - line = re.sub(" +", " ", line.rstrip().lstrip()) # noqa: PLW2901 + line = re.sub(r" +", " ", line.rstrip().lstrip()) # noqa: PLW2901 intensities.append(float(line.split()[2])) intensities = np.array(intensities)