Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
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: [
--force-exclude, python/grpc/generated
]

- repo: https://github.com/pycqa/isort
rev: 5.12.0
rev: 7.0.0
hooks:
- id: isort
args: [
Expand All @@ -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

Expand All @@ -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

Expand Down
2 changes: 1 addition & 1 deletion benchmark/data/process_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
3 changes: 2 additions & 1 deletion benchmark/tests/python/test_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -49,6 +49,7 @@
# Initialize our seed
seed(1)


# Create the random value generator
def gen_value():
return MIN + (random() * (MAX - MIN))
Expand Down
1 change: 1 addition & 0 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Sphinx documentation configuration file."""

from datetime import datetime

from sphinx_gallery.sorting import FileNameSortKey
Expand Down
1 change: 1 addition & 0 deletions doc/validate_png.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

Removes invalid PNGs (probably GIF)
"""

from glob import glob
import os

Expand Down
6 changes: 3 additions & 3 deletions src/ansys/eigen/python/rest/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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."
)
Expand Down Expand Up @@ -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."
)
Expand Down
3 changes: 2 additions & 1 deletion src/ansys/eigen/python/testing/test_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -49,6 +49,7 @@
# Initialize the seed
seed(1)


# Create the random value generator
def gen_value():
return MIN + (random() * (MAX - MIN))
Expand Down
3 changes: 2 additions & 1 deletion tests/test_rest_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down