From 9a5616f57b3d3be31e91be3863fdf0e565cbb618 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 19 Jan 2026 20:49:35 +0000 Subject: [PATCH 1/3] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - https://github.com/psf/black → https://github.com/psf/black-pre-commit-mirror - [github.com/psf/black-pre-commit-mirror: 22.12.0 → 26.1.0](https://github.com/psf/black-pre-commit-mirror/compare/22.12.0...26.1.0) - [github.com/pycqa/isort: 5.12.0 → 7.0.0](https://github.com/pycqa/isort/compare/5.12.0...7.0.0) - [github.com/PyCQA/flake8: 6.0.0 → 7.3.0](https://github.com/PyCQA/flake8/compare/6.0.0...7.3.0) - [github.com/codespell-project/codespell: v2.2.2 → v2.4.1](https://github.com/codespell-project/codespell/compare/v2.2.2...v2.4.1) - [github.com/pre-commit/pre-commit-hooks: v4.4.0 → v6.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.4.0...v6.0.0) - [github.com/python-jsonschema/check-jsonschema: 0.19.2 → 0.36.0](https://github.com/python-jsonschema/check-jsonschema/compare/0.19.2...0.36.0) --- .pre-commit-config.yaml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2c21671d..a0c4fbce 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,7 +1,7 @@ exclude: '^.*external.*$' repos: -- repo: https://github.com/psf/black - rev: 22.12.0 +- repo: https://github.com/psf/black-pre-commit-mirror + rev: 26.1.0 hooks: - id: black args: [ @@ -9,7 +9,7 @@ repos: ] - repo: https://github.com/pycqa/isort - rev: 5.12.0 + rev: 7.0.0 hooks: - id: isort args: [ @@ -21,12 +21,12 @@ repos: ] - repo: https://github.com/PyCQA/flake8 - rev: 6.0.0 + rev: 7.3.0 hooks: - id: flake8 - repo: https://github.com/codespell-project/codespell - rev: v2.2.2 + rev: v2.4.1 hooks: - id: codespell @@ -39,14 +39,14 @@ repos: # exclude: "tests/" - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 + rev: v6.0.0 hooks: - id: check-merge-conflict - id: debug-statements # this validates our github workflow files - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.19.2 + rev: 0.36.0 hooks: - id: check-github-workflows From dce1deab910c86533920143f7c4b3fb67b60c921 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 19 Jan 2026 20:49:49 +0000 Subject: [PATCH 2/3] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- benchmark/data/process_data.py | 2 +- benchmark/tests/python/test_tools.py | 3 ++- doc/source/conf.py | 1 + doc/validate_png.py | 1 + src/ansys/eigen/python/rest/client.py | 4 ++-- src/ansys/eigen/python/testing/test_tools.py | 3 ++- tests/test_rest_server.py | 3 ++- 7 files changed, 11 insertions(+), 6 deletions(-) diff --git a/benchmark/data/process_data.py b/benchmark/data/process_data.py index 8b66e54d..37f2d0ff 100644 --- a/benchmark/data/process_data.py +++ b/benchmark/data/process_data.py @@ -49,7 +49,7 @@ "multiply_matrices", ] -for (test_type, x_axis) in zip(test_types, x_axis_tests): +for test_type, x_axis in zip(test_types, x_axis_tests): print("Plotting %s test..." % test_type) diff --git a/benchmark/tests/python/test_tools.py b/benchmark/tests/python/test_tools.py index 79ccada3..bca5e28f 100644 --- a/benchmark/tests/python/test_tools.py +++ b/benchmark/tests/python/test_tools.py @@ -20,7 +20,7 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. -""" Tools for BM tests """ +"""Tools for BM tests""" from random import random, seed @@ -49,6 +49,7 @@ # Initialize our seed seed(1) + # Create the random value generator def gen_value(): return MIN + (random() * (MAX - MIN)) diff --git a/doc/source/conf.py b/doc/source/conf.py index 8c115e26..2fbcffba 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -1,4 +1,5 @@ """Sphinx documentation configuration file.""" + from datetime import datetime from sphinx_gallery.sorting import FileNameSortKey diff --git a/doc/validate_png.py b/doc/validate_png.py index 820ecce2..4494993e 100644 --- a/doc/validate_png.py +++ b/doc/validate_png.py @@ -2,6 +2,7 @@ Removes invalid PNGs (probably GIF) """ + from glob import glob import os diff --git a/src/ansys/eigen/python/rest/client.py b/src/ansys/eigen/python/rest/client.py index a3fccc09..3d8f376d 100644 --- a/src/ansys/eigen/python/rest/client.py +++ b/src/ansys/eigen/python/rest/client.py @@ -281,7 +281,7 @@ def __post_resource(self, arg, resource): json={"value": arg.tolist()}, auth=(self._user, self._pwd), ) - except (requests.exceptions.ConnectionError): + except requests.exceptions.ConnectionError: raise RuntimeError( "Could not connect to server... Check server status or connection details." ) @@ -333,7 +333,7 @@ def __get_ops_resource(self, id1, id2, ops, resource): json={"id1": id1, "id2": id2}, auth=(self._user, self._pwd), ) - except (requests.exceptions.ConnectionError): + except requests.exceptions.ConnectionError: raise RuntimeError( "Could not connect to server... Check server status or connection details." ) diff --git a/src/ansys/eigen/python/testing/test_tools.py b/src/ansys/eigen/python/testing/test_tools.py index 3a06180f..d3b587a9 100644 --- a/src/ansys/eigen/python/testing/test_tools.py +++ b/src/ansys/eigen/python/testing/test_tools.py @@ -20,7 +20,7 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. -"""Tools for tests """ +"""Tools for tests""" from random import random, seed @@ -49,6 +49,7 @@ # Initialize the seed seed(1) + # Create the random value generator def gen_value(): return MIN + (random() * (MAX - MIN)) diff --git a/tests/test_rest_server.py b/tests/test_rest_server.py index b969f094..3a0bbb27 100644 --- a/tests/test_rest_server.py +++ b/tests/test_rest_server.py @@ -80,7 +80,8 @@ def test_server_ops_vectors(testing_client): def test_server_ops_matrices(testing_client): """Unit test to verify that the server returns the expected response - when performing the addition and multiplication of two numpy arrays (as matrices).""" + when performing the addition and multiplication of two numpy arrays (as matrices). + """ # Define your matrices mat_1 = np.array([[1, 2], [3, 4]], dtype=np.float64) From 97974fc531ce9386a7d06e9c781a1001d9bb1d46 Mon Sep 17 00:00:00 2001 From: Roberto Pastor Muela <37798125+RobPasMue@users.noreply.github.com> Date: Tue, 20 Jan 2026 07:49:44 +0100 Subject: [PATCH 3/3] Update client.py --- src/ansys/eigen/python/rest/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ansys/eigen/python/rest/client.py b/src/ansys/eigen/python/rest/client.py index 3d8f376d..fc94dc2c 100644 --- a/src/ansys/eigen/python/rest/client.py +++ b/src/ansys/eigen/python/rest/client.py @@ -232,7 +232,7 @@ def __perform_operation(self, arg1, arg2, arg_dim, ops): Returns ------- numpy.ndarray - Tesult of the operation requested between arg1 and arg2. + Result of the operation requested between arg1 and arg2. """ # At this point we must check if we are dealing with a vector or a matrix... # and proceed to perform the requested operation