From d376af92ca93d776145145f445df37ed85be834a Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 19 Feb 2024 16:32:42 +0000 Subject: [PATCH 1/2] chore: update pre-commit hooks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/astral-sh/ruff-pre-commit: v0.1.6 → v0.2.2](https://github.com/astral-sh/ruff-pre-commit/compare/v0.1.6...v0.2.2) - [github.com/pre-commit/mirrors-prettier: v3.1.0 → v4.0.0-alpha.8](https://github.com/pre-commit/mirrors-prettier/compare/v3.1.0...v4.0.0-alpha.8) - [github.com/pre-commit/mirrors-mypy: v1.7.1 → v1.8.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.7.1...v1.8.0) --- .pre-commit-config.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a5e21005..988485f5 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -32,7 +32,7 @@ repos: additional_dependencies: [black==23.7.0] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.1.6" + rev: "v0.2.2" hooks: - id: ruff args: ["--fix", "--show-fixes"] @@ -62,14 +62,14 @@ repos: - id: rst-inline-touching-normal - repo: https://github.com/pre-commit/mirrors-prettier - rev: "v3.1.0" + rev: "v4.0.0-alpha.8" hooks: - id: prettier types_or: [yaml, markdown, html, css, scss, javascript, json] args: [--prose-wrap=always] - repo: https://github.com/pre-commit/mirrors-mypy - rev: "v1.7.1" + rev: "v1.8.0" hooks: - id: mypy files: src|tests From 4b7d0947380be1462e1d5887562561ebbfe862f9 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 19 Feb 2024 16:36:10 +0000 Subject: [PATCH 2/2] style: pre-commit fixes --- src/invert4geom/inversion.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/invert4geom/inversion.py b/src/invert4geom/inversion.py index f36c0a72..701f1ea4 100644 --- a/src/invert4geom/inversion.py +++ b/src/invert4geom/inversion.py @@ -850,7 +850,7 @@ def run_inversion( ) # set starting delta L2 norm to positive infinity - delta_l2_norm = np.Inf + delta_l2_norm = np.inf # iteration times iter_times = []