From 0c7fecb237494f7e9fce72132bbc3f921e031009 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 22:14:59 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/PyCQA/isort: 5.13.2 → 6.0.0](https://github.com/PyCQA/isort/compare/5.13.2...6.0.0) - [github.com/psf/black: 24.10.0 → 25.1.0](https://github.com/psf/black/compare/24.10.0...25.1.0) - [github.com/kynan/nbstripout: 0.8.0 → 0.8.1](https://github.com/kynan/nbstripout/compare/0.8.0...0.8.1) --- .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 23fe379..5c69653 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -30,18 +30,18 @@ repos: - flake8-docstrings==1.6.0 - repo: https://github.com/PyCQA/isort - rev: 5.13.2 + rev: 6.0.0 hooks: - id: isort - repo: https://github.com/psf/black - rev: 24.10.0 + rev: 25.1.0 hooks: - id: black args: [--safe] - repo: https://github.com/kynan/nbstripout - rev: 0.8.0 + rev: 0.8.1 hooks: - id: nbstripout From a86fc7adb043575452e535ec185de73efad15d79 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 22:15:17 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/evotorch/distributions.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/evotorch/distributions.py b/src/evotorch/distributions.py index 2636a3e..8b53651 100644 --- a/src/evotorch/distributions.py +++ b/src/evotorch/distributions.py @@ -29,7 +29,9 @@ ) from .tools import multiply_rows_by_scalars as dot from .tools import rowwise_sum as total -from .tools import to_torch_dtype +from .tools import ( + to_torch_dtype, +) from .tools.cloning import Serializable, deep_clone from .tools.ranking import rank from .tools.tensormaker import TensorMakerMixin