From 241eff47a1d32da77d9c8359bbd01698390c7122 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 3 Feb 2025 23:47:18 +0000 Subject: [PATCH 1/2] ci(pre-commit.ci): autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/abravalheri/validate-pyproject: v0.18 → v0.23](https://github.com/abravalheri/validate-pyproject/compare/v0.18...v0.23) - [github.com/crate-ci/typos: v1.23.6 → typos-dict-v0.12.4](https://github.com/crate-ci/typos/compare/v1.23.6...typos-dict-v0.12.4) - [github.com/astral-sh/ruff-pre-commit: v0.5.6 → v0.9.4](https://github.com/astral-sh/ruff-pre-commit/compare/v0.5.6...v0.9.4) - [github.com/pre-commit/mirrors-mypy: v1.11.1 → v1.14.1](https://github.com/pre-commit/mirrors-mypy/compare/v1.11.1...v1.14.1) --- .pre-commit-config.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 820e6fe..3b2a834 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,25 +5,25 @@ ci: repos: - repo: https://github.com/abravalheri/validate-pyproject - rev: v0.18 + rev: v0.23 hooks: - id: validate-pyproject - repo: https://github.com/crate-ci/typos - rev: v1.23.6 + rev: typos-dict-v0.12.4 hooks: - id: typos args: [--force-exclude] # omitting --write-changes - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.5.6 + rev: v0.9.4 hooks: - id: ruff args: [--fix] # may also add '--unsafe-fixes' - id: ruff-format - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.11.1 + rev: v1.14.1 hooks: - id: mypy files: "^src/" From f2ea55396cd70eb6271a20aeec62481fa3c3fbbe Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 3 Feb 2025 23:49:04 +0000 Subject: [PATCH 2/2] style(pre-commit.ci): auto fixes [...] --- src/pycudadecon/__init__.py | 6 +++--- src/pycudadecon/util.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pycudadecon/__init__.py b/src/pycudadecon/__init__.py index 566a6f0..4545e27 100755 --- a/src/pycudadecon/__init__.py +++ b/src/pycudadecon/__init__.py @@ -40,16 +40,16 @@ def __getattr__(self, name: str) -> Any: from .otf import TemporaryOTF, make_otf __all__ = [ + "RLContext", + "TemporaryOTF", "__version__", "affineGPU", "decon", "deskewGPU", "make_otf", "rl_cleanup", + "rl_context", "rl_decon", "rl_init", - "RLContext", - "rl_context", "rotateGPU", - "TemporaryOTF", ] diff --git a/src/pycudadecon/util.py b/src/pycudadecon/util.py index b8c4322..29eedf8 100644 --- a/src/pycudadecon/util.py +++ b/src/pycudadecon/util.py @@ -77,7 +77,7 @@ def is_otf(arr_or_fpath: PathOrArray) -> bool: @contextmanager def stdout_redirected(to: str = os.devnull) -> Iterator[None]: """ - import os. + Import os. with stdout_redirected(to=filename): print("from Python")