From b59c764657da92867a9b9f669a188529108ac241 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 22 Oct 2024 16:23:11 -0400 Subject: [PATCH] [pre-commit.ci] pre-commit autoupdate (#458) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [pre-commit.ci] pre-commit autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.6.9 → v0.7.0](https://github.com/astral-sh/ruff-pre-commit/compare/v0.6.9...v0.7.0) - [github.com/pre-commit/mirrors-mypy: v1.11.2 → v1.12.1](https://github.com/pre-commit/mirrors-mypy/compare/v1.11.2...v1.12.1) * ignore sim115 --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Scott Staniewicz --- .pre-commit-config.yaml | 4 ++-- src/dolphin/io/_utils.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 570229f3..7b3ec4aa 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -26,13 +26,13 @@ repos: args: [--preview] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.6.9 + rev: v0.7.0 hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix, --show-fixes] - repo: https://github.com/pre-commit/mirrors-mypy - rev: "v1.11.2" + rev: "v1.12.1" hooks: - id: mypy additional_dependencies: diff --git a/src/dolphin/io/_utils.py b/src/dolphin/io/_utils.py index 2fe1d2b6..fe7f0e8e 100644 --- a/src/dolphin/io/_utils.py +++ b/src/dolphin/io/_utils.py @@ -142,7 +142,7 @@ def repack_raster( import rasterio as rio if output_dir is None: - output_file = tempfile.NamedTemporaryFile( + output_file = tempfile.NamedTemporaryFile( # noqa: SIM115 suffix=raster_path.suffix, dir=output_dir, delete=False ) output_path = Path(output_file.name)