Skip to content

Commit f2f4121

Browse files
[pre-commit.ci] pre-commit autoupdate (#300)
* [pre-commit.ci] pre-commit autoupdate updates: - https://github.com/psf/blackhttps://github.com/psf/black-pre-commit-mirror - [github.com/psf/black-pre-commit-mirror: 22.12.0 → 26.1.0](psf/black-pre-commit-mirror@22.12.0...26.1.0) - [github.com/pycqa/isort: 5.12.0 → 7.0.0](PyCQA/isort@5.12.0...7.0.0) - [github.com/PyCQA/flake8: 6.0.0 → 7.3.0](PyCQA/flake8@6.0.0...7.3.0) - [github.com/codespell-project/codespell: v2.2.2 → v2.4.1](codespell-project/codespell@v2.2.2...v2.4.1) - [github.com/pre-commit/pre-commit-hooks: v4.4.0 → v6.0.0](pre-commit/pre-commit-hooks@v4.4.0...v6.0.0) - [github.com/python-jsonschema/check-jsonschema: 0.19.2 → 0.36.0](python-jsonschema/check-jsonschema@0.19.2...0.36.0) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update client.py --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Roberto Pastor Muela <37798125+RobPasMue@users.noreply.github.com>
1 parent 7e9c400 commit f2f4121

File tree

8 files changed

+19
-14
lines changed

8 files changed

+19
-14
lines changed

.pre-commit-config.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
exclude: '^.*external.*$'
22
repos:
3-
- repo: https://github.com/psf/black
4-
rev: 22.12.0
3+
- repo: https://github.com/psf/black-pre-commit-mirror
4+
rev: 26.1.0
55
hooks:
66
- id: black
77
args: [
88
--force-exclude, python/grpc/generated
99
]
1010

1111
- repo: https://github.com/pycqa/isort
12-
rev: 5.12.0
12+
rev: 7.0.0
1313
hooks:
1414
- id: isort
1515
args: [
@@ -21,12 +21,12 @@ repos:
2121
]
2222

2323
- repo: https://github.com/PyCQA/flake8
24-
rev: 6.0.0
24+
rev: 7.3.0
2525
hooks:
2626
- id: flake8
2727

2828
- repo: https://github.com/codespell-project/codespell
29-
rev: v2.2.2
29+
rev: v2.4.1
3030
hooks:
3131
- id: codespell
3232

@@ -39,14 +39,14 @@ repos:
3939
# exclude: "tests/"
4040

4141
- repo: https://github.com/pre-commit/pre-commit-hooks
42-
rev: v4.4.0
42+
rev: v6.0.0
4343
hooks:
4444
- id: check-merge-conflict
4545
- id: debug-statements
4646

4747
# this validates our github workflow files
4848
- repo: https://github.com/python-jsonschema/check-jsonschema
49-
rev: 0.19.2
49+
rev: 0.36.0
5050
hooks:
5151
- id: check-github-workflows
5252

benchmark/data/process_data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"multiply_matrices",
5050
]
5151

52-
for (test_type, x_axis) in zip(test_types, x_axis_tests):
52+
for test_type, x_axis in zip(test_types, x_axis_tests):
5353

5454
print("Plotting %s test..." % test_type)
5555

benchmark/tests/python/test_tools.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2121
# SOFTWARE.
2222

23-
""" Tools for BM tests """
23+
"""Tools for BM tests"""
2424

2525
from random import random, seed
2626

@@ -49,6 +49,7 @@
4949
# Initialize our seed
5050
seed(1)
5151

52+
5253
# Create the random value generator
5354
def gen_value():
5455
return MIN + (random() * (MAX - MIN))

doc/source/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Sphinx documentation configuration file."""
2+
23
from datetime import datetime
34

45
from sphinx_gallery.sorting import FileNameSortKey

doc/validate_png.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
33
Removes invalid PNGs (probably GIF)
44
"""
5+
56
from glob import glob
67
import os
78

src/ansys/eigen/python/rest/client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ def __perform_operation(self, arg1, arg2, arg_dim, ops):
232232
Returns
233233
-------
234234
numpy.ndarray
235-
Tesult of the operation requested between arg1 and arg2.
235+
Result of the operation requested between arg1 and arg2.
236236
"""
237237
# At this point we must check if we are dealing with a vector or a matrix...
238238
# and proceed to perform the requested operation
@@ -281,7 +281,7 @@ def __post_resource(self, arg, resource):
281281
json={"value": arg.tolist()},
282282
auth=(self._user, self._pwd),
283283
)
284-
except (requests.exceptions.ConnectionError):
284+
except requests.exceptions.ConnectionError:
285285
raise RuntimeError(
286286
"Could not connect to server... Check server status or connection details."
287287
)
@@ -333,7 +333,7 @@ def __get_ops_resource(self, id1, id2, ops, resource):
333333
json={"id1": id1, "id2": id2},
334334
auth=(self._user, self._pwd),
335335
)
336-
except (requests.exceptions.ConnectionError):
336+
except requests.exceptions.ConnectionError:
337337
raise RuntimeError(
338338
"Could not connect to server... Check server status or connection details."
339339
)

src/ansys/eigen/python/testing/test_tools.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2121
# SOFTWARE.
2222

23-
"""Tools for tests """
23+
"""Tools for tests"""
2424

2525
from random import random, seed
2626

@@ -49,6 +49,7 @@
4949
# Initialize the seed
5050
seed(1)
5151

52+
5253
# Create the random value generator
5354
def gen_value():
5455
return MIN + (random() * (MAX - MIN))

tests/test_rest_server.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ def test_server_ops_vectors(testing_client):
8080

8181
def test_server_ops_matrices(testing_client):
8282
"""Unit test to verify that the server returns the expected response
83-
when performing the addition and multiplication of two numpy arrays (as matrices)."""
83+
when performing the addition and multiplication of two numpy arrays (as matrices).
84+
"""
8485

8586
# Define your matrices
8687
mat_1 = np.array([[1, 2], [3, 4]], dtype=np.float64)

0 commit comments

Comments
 (0)