From 160f7852d23ef721d31fe224d692e10a56131706 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 14 Mar 2023 02:47:23 +0000 Subject: [PATCH 01/32] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/codespell-project/codespell: v2.2.2 → v2.2.4](https://github.com/codespell-project/codespell/compare/v2.2.2...v2.2.4) - [github.com/python-jsonschema/check-jsonschema: 0.21.0 → 0.22.0](https://github.com/python-jsonschema/check-jsonschema/compare/0.21.0...0.22.0) --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 14c3b5602e..a4a79f7e62 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -26,7 +26,7 @@ repos: - id: flake8 - repo: https://github.com/codespell-project/codespell - rev: v2.2.2 + rev: v2.2.4 hooks: - id: codespell args: ["--toml", "pyproject.toml"] @@ -47,6 +47,6 @@ repos: # this validates our github workflow files - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.21.0 + rev: 0.22.0 hooks: - id: check-github-workflows From 055290a8ee0497453eb2f11d2ac84a5ebc81bf0d Mon Sep 17 00:00:00 2001 From: German Date: Tue, 14 Mar 2023 11:29:01 +0800 Subject: [PATCH 02/32] Fixing codespell --- doc/styles/Vocab/ANSYS/accept.txt | 1 + src/ansys/mapdl/core/launcher.py | 4 ++-- tests/test_mapdl.py | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/doc/styles/Vocab/ANSYS/accept.txt b/doc/styles/Vocab/ANSYS/accept.txt index 9b780cb578..75fd6c6c06 100644 --- a/doc/styles/Vocab/ANSYS/accept.txt +++ b/doc/styles/Vocab/ANSYS/accept.txt @@ -5,6 +5,7 @@ [Ss]uperelements 3-D aadd +ALIS AMLs ans ansys diff --git a/src/ansys/mapdl/core/launcher.py b/src/ansys/mapdl/core/launcher.py index 7ecc29409d..4d66c515fa 100644 --- a/src/ansys/mapdl/core/launcher.py +++ b/src/ansys/mapdl/core/launcher.py @@ -1248,7 +1248,7 @@ def _validate_MPI(add_sw, exec_path, force_intel=False): Parameters ---------- add_sw : str - Additional swtiches. + Additional switches. exec_path : str Path to the MAPDL executable. force_intel : bool, optional @@ -1307,7 +1307,7 @@ def _force_smp_student_version(add_sw, exec_path): Parameters ---------- add_sw : str - Additional swtiches. + Additional switches. exec_path : str Path to the MAPDL executable. diff --git a/tests/test_mapdl.py b/tests/test_mapdl.py index 23bd17f353..6b5c3097ef 100644 --- a/tests/test_mapdl.py +++ b/tests/test_mapdl.py @@ -1410,7 +1410,7 @@ def test_mpfunctions(mapdl, cube_solve, capsys): assert mapdl.get_value("NUXY", "1", "TEMP", 0) == nuxy assert np.allclose(mapdl.get_value("EX", 1, "TEMP", 0), ex) - # Reding file in remote + # Reading file in remote fname_ = f"{fname}.{ext}" mapdl.upload(fname_) os.remove(fname_) From 16c5c5803143da699cffd8f473e37ba0782ba280 Mon Sep 17 00:00:00 2001 From: German Date: Tue, 14 Mar 2023 11:36:52 +0800 Subject: [PATCH 03/32] Fixing pre-commit --- .pre-commit-config.yaml | 2 +- doc/styles/Vocab/ANSYS/accept.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a4a79f7e62..2abedb1ca4 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -18,7 +18,7 @@ repos: rev: 1.13.0 hooks: - id: blacken-docs - additional_dependencies: [black==22.12.0] + additional_dependencies: [black==23.1.0] - repo: https://github.com/PyCQA/flake8 rev: 6.0.0 diff --git a/doc/styles/Vocab/ANSYS/accept.txt b/doc/styles/Vocab/ANSYS/accept.txt index 75fd6c6c06..db037c1996 100644 --- a/doc/styles/Vocab/ANSYS/accept.txt +++ b/doc/styles/Vocab/ANSYS/accept.txt @@ -5,6 +5,7 @@ [Ss]uperelements 3-D aadd +alis ALIS AMLs ans From 5624b2f5b385a87f91a6cb9758d5a04664556442 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 14 Mar 2023 03:37:39 +0000 Subject: [PATCH 04/32] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- doc/source/api/unit_testing.rst | 9 --------- .../extended_examples/Python_UPF/python_upf_examples.rst | 7 ------- doc/source/user_guide/upf.rst | 4 ---- 3 files changed, 20 deletions(-) diff --git a/doc/source/api/unit_testing.rst b/doc/source/api/unit_testing.rst index a35d13822f..71285bb538 100644 --- a/doc/source/api/unit_testing.rst +++ b/doc/source/api/unit_testing.rst @@ -40,7 +40,6 @@ this library: .. code:: python def get_report_colors(theme): - if theme == "weather": colors = ["blue", "lightblue", "grey"] elif theme == "traffic": @@ -58,7 +57,6 @@ You can opt to run the tests with this configuration: .. code:: python def test_get_report_colors(): - assert get_report_colors("weather") == ["blue", "lightblue", "grey"] assert get_report_colors("traffic") == ["red", "orange", "yellow"] assert get_report_colors("other") == ["red", "blue", "green"] @@ -69,17 +67,14 @@ Or, if a method is a bit more complex, you can split the case in different tests .. code:: python def test_get_report_colors_weather(): - assert get_report_colors("weather") == ["blue", "lightblue", "grey"] def test_get_report_colors_traffic(): - assert get_report_colors("traffic") == ["red", "orange", "yellow"] def test_get_report_colors_other(): - assert get_report_colors("other") == ["red", "blue", "green"] @@ -129,7 +124,6 @@ It will be executed upstream of each test and not within all tests. .. code:: python def test_my_new_feature(mapdl): # pass the 'mapdl' fixture as an argument. - mapdl.prep7() # .... more code @@ -152,18 +146,15 @@ Here are some examples of how you use ``pytest``: @pytest.fixture(scope="module") def mm(mapdl): # pass the 'mapdl' fixture as an argument. - return mapdl.math def test_rand(mm): # pass the 'mm' fixture as an argument. - w = mm.rand(10) assert w.size == 10 # if it is False, AssertionError is raised def test_matrix_addition(mm): - m1 = mm.rand(10, 10) m2 = mm.rand(10, 10) m3 = m1 + m2 diff --git a/doc/source/examples/extended_examples/Python_UPF/python_upf_examples.rst b/doc/source/examples/extended_examples/Python_UPF/python_upf_examples.rst index eed1d501ea..53a8565349 100644 --- a/doc/source/examples/extended_examples/Python_UPF/python_upf_examples.rst +++ b/doc/source/examples/extended_examples/Python_UPF/python_upf_examples.rst @@ -94,10 +94,8 @@ Input data class MapdlUserService(MapdlUser_pb2_grpc.MapdlUserServiceServicer): - # ################################################################# def UserMat(self, request, context): - ncomp = request.ncomp nDirect = request.nDirect @@ -129,7 +127,6 @@ Input data def usermat3d(request, context, response): - ZERO = 0.0 HALF = 0.5 THIRD = 1.0 / 3.0 @@ -342,11 +339,9 @@ Input data class MapdlUserService(MapdlUser_pb2_grpc.MapdlUserServiceServicer): - # ################################################################# def UsrShift(self, request, context): - response = MapdlUser_pb2.UsrShiftResponse() one = 1.0 half = 0.5 @@ -472,10 +467,8 @@ Input data class MapdlUserService(MapdlUser_pb2_grpc.MapdlUserServiceServicer): - # ################################################################# def UserHyper(self, request, context): - global firstcall if firstcall == 1: print(">> Using Python UserHyper function\n") diff --git a/doc/source/user_guide/upf.rst b/doc/source/user_guide/upf.rst index 5376883f5c..7fcb34708e 100644 --- a/doc/source/user_guide/upf.rst +++ b/doc/source/user_guide/upf.rst @@ -119,10 +119,8 @@ First, create a Python file starting from this template: class MapdlUserService(MapdlUser_pb2_grpc.MapdlUserServiceServicer): - # ################################################################# def UAnBeg(self, request, context): - print(" ======================================= ") print(" >> Inside the PYTHON UAnBeg routine << ") print(" ======================================= \n") @@ -232,10 +230,8 @@ variable: class MapdlUserService(MapdlUser_pb2_grpc.MapdlUserServiceServicer): - # ############################################################### def UserMat(self, request, context): - global firstcall if firstcall == 1: From f5f952e472d243d755257ee28f84fcc11cbaab9b Mon Sep 17 00:00:00 2001 From: German Date: Tue, 14 Mar 2023 11:40:51 +0800 Subject: [PATCH 05/32] simplifying accepted words list --- doc/styles/Vocab/ANSYS/accept.txt | 34 +++++++++++-------------------- 1 file changed, 12 insertions(+), 22 deletions(-) diff --git a/doc/styles/Vocab/ANSYS/accept.txt b/doc/styles/Vocab/ANSYS/accept.txt index db037c1996..0cb8b77853 100644 --- a/doc/styles/Vocab/ANSYS/accept.txt +++ b/doc/styles/Vocab/ANSYS/accept.txt @@ -1,5 +1,17 @@ +[aA]nsys [Bb]ooleans +[Cc]ommand [Pp]rompt +[Ee]igensolver +[Hh]yperelasticity [Kk]eypoints +[Mm]atplotlib +[Nn]umpy +[Pp]ostprocess +[Pp]ostprocessing +[Pp]owerShell +[Pp]restressed +[Pp]rony +[Pp]yansys [Pp]ythonic [Pp]ythonically [Ss]uperelements @@ -9,8 +21,6 @@ alis ALIS AMLs ans -ansys -Ansys ANSYS APDL Math APDLMath @@ -25,8 +35,6 @@ breakpoint centerline CentOS Chao -command prompt -Command Prompt delet Docker dof @@ -34,8 +42,6 @@ ect eigenfrequency eigenproblems eigensolution -eigensolver -Eigensolver eigensolvers elastoplastic emiss @@ -50,8 +56,6 @@ Gmsh GUI hexahedral hostname -hyperelasticity -Hyperelasticity Imagemagick ImageMagick imagin @@ -68,8 +72,6 @@ Linux MAPDL mater MATLAB -matplotlib -Matplotlib mesher midside Mises @@ -79,29 +81,17 @@ nce Newton-Raphson nin nonlinearities -numpy NumPy optiSLang parm performant PMLs -postprocess -Postprocess -postprocessing -Postprocessing postprocessor -powershell -PowerShell Prasanna pres -prestressed -Prestressed -prony -Prony Pseudotime Puri py -pyansys PyAnsys PyDPF-Core PyDPF-Post From 0173637ff2338632709755176aca5b4b6c16b63e Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 4 Apr 2023 04:43:09 +0000 Subject: [PATCH 06/32] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/psf/black: 23.1.0 → 23.3.0](https://github.com/psf/black/compare/23.1.0...23.3.0) --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2abedb1ca4..fdb3f3a765 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -8,7 +8,7 @@ repos: - id: isort - repo: https://github.com/psf/black - rev: 23.1.0 # IF VERSION CHANGES --> MODIFY "blacken-docs" MANUALLY AS WELL!! + rev: 23.3.0 # IF VERSION CHANGES --> MODIFY "blacken-docs" MANUALLY AS WELL!! hooks: - id: black args: From 48b6a0af4b65a727e9a2c6bb40d140dcdc917d45 Mon Sep 17 00:00:00 2001 From: German Date: Tue, 4 Apr 2023 18:43:41 +0800 Subject: [PATCH 07/32] Updating also blackend --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index fdb3f3a765..37c4bc6d6a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -18,7 +18,7 @@ repos: rev: 1.13.0 hooks: - id: blacken-docs - additional_dependencies: [black==23.1.0] + additional_dependencies: [black==23.3.0] - repo: https://github.com/PyCQA/flake8 rev: 6.0.0 From 4813b5c33ffffd2a9f10c852f318d451073a47b4 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 20 Jun 2023 04:01:26 +0000 Subject: [PATCH 08/32] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/adamchainz/blacken-docs: 1.13.0 → 1.14.0](https://github.com/adamchainz/blacken-docs/compare/1.13.0...1.14.0) - [github.com/codespell-project/codespell: v2.2.4 → v2.2.5](https://github.com/codespell-project/codespell/compare/v2.2.4...v2.2.5) - [github.com/python-jsonschema/check-jsonschema: 0.23.1 → 0.23.2](https://github.com/python-jsonschema/check-jsonschema/compare/0.23.1...0.23.2) --- .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 00fcf7c63a..4451643963 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -15,7 +15,7 @@ repos: - --line-length=88 - repo: https://github.com/adamchainz/blacken-docs - rev: 1.13.0 + rev: 1.14.0 hooks: - id: blacken-docs additional_dependencies: [black==23.3.0] @@ -26,7 +26,7 @@ repos: - id: flake8 - repo: https://github.com/codespell-project/codespell - rev: v2.2.4 + rev: v2.2.5 hooks: - id: codespell args: ["--toml", "pyproject.toml"] @@ -47,6 +47,6 @@ repos: # this validates our github workflow files - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.23.1 + rev: 0.23.2 hooks: - id: check-github-workflows From a1bf338e1daaabbe69058aa926081529514924ff Mon Sep 17 00:00:00 2001 From: German Date: Mon, 19 Jun 2023 12:20:34 +0200 Subject: [PATCH 09/32] removing vale warnings --- doc/source/examples/extended_examples/gui/executable.rst | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/doc/source/examples/extended_examples/gui/executable.rst b/doc/source/examples/extended_examples/gui/executable.rst index 939ab5faf4..042c405ea4 100644 --- a/doc/source/examples/extended_examples/gui/executable.rst +++ b/doc/source/examples/extended_examples/gui/executable.rst @@ -169,6 +169,8 @@ Start by importing the `QtInteractor None: @@ -179,6 +181,8 @@ Then, add a plotter on the first tab: self._preprocessing_plotter = QtInteractor(theme=MapdlTheme()) container_layout.addWidget(self._preprocessing_plotter, 0, 4, 6, 50) +.. vale on + Add another plotter on the second tab: .. code:: python @@ -213,6 +217,8 @@ Develop the logic Connect each button to a function that contains the logic: +.. vale off + .. code-block:: python :emphasize-lines: 5,14 @@ -233,6 +239,8 @@ Connect each button to a function that contains the logic: container_layout.addWidget(self._solve_button) +.. vale on + You can now write the related functions: .. literalinclude:: gui_app.py From 30a7ac06cae5b2575933a4ed20dbdf1102602bb4 Mon Sep 17 00:00:00 2001 From: German Date: Tue, 20 Jun 2023 08:43:24 +0000 Subject: [PATCH 10/32] Adding words to ignore --- doc/styles/Vocab/ANSYS/accept.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/styles/Vocab/ANSYS/accept.txt b/doc/styles/Vocab/ANSYS/accept.txt index 9c9d00d794..a76682b01c 100644 --- a/doc/styles/Vocab/ANSYS/accept.txt +++ b/doc/styles/Vocab/ANSYS/accept.txt @@ -17,6 +17,8 @@ [Ss]uperelements 3-D aadd +aas +AAS alis ALIS AMLs From b402429fc0904fa6e16ae9d7bf279f4925f135ee Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 30 Oct 2023 20:04:04 +0000 Subject: [PATCH 11/32] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/psf/black: 23.10.0 → 23.10.1](https://github.com/psf/black/compare/23.10.0...23.10.1) --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 645b976e28..ade5ca430a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -21,7 +21,7 @@ repos: ) - repo: https://github.com/psf/black - rev: 23.10.0 # IF VERSION CHANGES --> MODIFY "blacken-docs" MANUALLY AS WELL!! + rev: 23.10.1 # IF VERSION CHANGES --> MODIFY "blacken-docs" MANUALLY AS WELL!! hooks: - id: black args: From b498f3220960074a21af1823ddb9375b487883f5 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 6 Nov 2023 19:57:23 +0000 Subject: [PATCH 12/32] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/python-jsonschema/check-jsonschema: 0.27.0 → 0.27.1](https://github.com/python-jsonschema/check-jsonschema/compare/0.27.0...0.27.1) --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ec1c50a2f6..38a72d5fe6 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -60,6 +60,6 @@ repos: # this validates our github workflow files - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.27.0 + rev: 0.27.1 hooks: - id: check-github-workflows From ecffb13c76f8486ad435ad0cf71244ee6f66e890 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 13 Nov 2023 20:23:09 +0000 Subject: [PATCH 13/32] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/psf/black: 23.10.1 → 23.11.0](https://github.com/psf/black/compare/23.10.1...23.11.0) --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 38a72d5fe6..1e524769ab 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -21,7 +21,7 @@ repos: ) - repo: https://github.com/psf/black - rev: 23.10.1 # IF VERSION CHANGES --> MODIFY "blacken-docs" MANUALLY AS WELL!! + rev: 23.11.0 # IF VERSION CHANGES --> MODIFY "blacken-docs" MANUALLY AS WELL!! hooks: - id: black args: From e7ff8c1363aff35cbfbf1aa029fc5fadcf0d4abe Mon Sep 17 00:00:00 2001 From: German Date: Mon, 20 Nov 2023 16:03:08 +0100 Subject: [PATCH 14/32] Updating blacken-docs --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1e524769ab..b479d3e3d8 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -31,7 +31,7 @@ repos: rev: 1.16.0 hooks: - id: blacken-docs - additional_dependencies: [black==23.10.1] + additional_dependencies: [black==23.11.0] - repo: https://github.com/PyCQA/flake8 rev: 6.1.0 From b659f194d16ddbb149b2a7863bc971b769dcf0c9 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 18 Dec 2023 20:24:34 +0000 Subject: [PATCH 15/32] [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.0 → 5.13.2](https://github.com/pycqa/isort/compare/5.13.0...5.13.2) - [github.com/psf/black: 23.11.0 → 23.12.0](https://github.com/psf/black/compare/23.11.0...23.12.0) --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5899503f9a..ee230193cb 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,7 +3,7 @@ fail_fast: True repos: - repo: https://github.com/pycqa/isort - rev: 5.13.0 + rev: 5.13.2 hooks: - id: isort @@ -21,7 +21,7 @@ repos: ) - repo: https://github.com/psf/black - rev: 23.11.0 # IF VERSION CHANGES --> MODIFY "blacken-docs" MANUALLY AS WELL!! + rev: 23.12.0 # IF VERSION CHANGES --> MODIFY "blacken-docs" MANUALLY AS WELL!! hooks: - id: black args: From dfce66bc1c3dbd59a17fa51256ebaa62962d272a Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 25 Dec 2023 20:07:20 +0000 Subject: [PATCH 16/32] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/psf/black: 23.12.0 → 23.12.1](https://github.com/psf/black/compare/23.12.0...23.12.1) --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 59cbbe2360..bdccd5684d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -21,7 +21,7 @@ repos: ) - repo: https://github.com/psf/black - rev: 23.12.0 # IF VERSION CHANGES --> MODIFY "blacken-docs" MANUALLY AS WELL!! + rev: 23.12.1 # IF VERSION CHANGES --> MODIFY "blacken-docs" MANUALLY AS WELL!! hooks: - id: black args: From 2764d3339a85c0c59f186b19481e0aacaa84e46c Mon Sep 17 00:00:00 2001 From: German Date: Tue, 26 Dec 2023 16:15:40 +0100 Subject: [PATCH 17/32] lower --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 23cd97cd75..0c8eab6232 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -21,7 +21,7 @@ repos: ) - repo: https://github.com/psf/black - rev: 23.12.1 # IF VERSION CHANGES --> MODIFY "blacken-docs" MANUALLY AS WELL!! + rev: 23.12.1 # If version changes --> modify "blacken-docs" manually as well. hooks: - id: black args: From 445574bf7da740f4df72a5fcce2d62dd764958e8 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 12 Feb 2024 23:30:02 +0000 Subject: [PATCH 18/32] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/psf/black: 24.1.1 → 24.2.0](https://github.com/psf/black/compare/24.1.1...24.2.0) - [github.com/python-jsonschema/check-jsonschema: 0.27.4 → 0.28.0](https://github.com/python-jsonschema/check-jsonschema/compare/0.27.4...0.28.0) --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3113a70422..910e2cb77f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -26,7 +26,7 @@ repos: ) - repo: https://github.com/psf/black - rev: 24.1.1 # If version changes --> modify "blacken-docs" manually as well. + rev: 24.2.0 # If version changes --> modify "blacken-docs" manually as well. hooks: - id: black args: @@ -65,6 +65,6 @@ repos: # this validates our github workflow files - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.27.4 + rev: 0.28.0 hooks: - id: check-github-workflows From e4bef6b722b18638fe53015e2a29bfe86e436a9e Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 19 Feb 2024 23:49:07 +0000 Subject: [PATCH 19/32] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/ansys/pre-commit-hooks: v0.2.8 → v0.2.9](https://github.com/ansys/pre-commit-hooks/compare/v0.2.8...v0.2.9) --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index df75c9bce0..ba14650f4b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,7 +3,7 @@ fail_fast: True repos: - repo: https://github.com/ansys/pre-commit-hooks - rev: v0.2.8 + rev: v0.2.9 hooks: - id: add-license-headers From 5d29d301ff38b749f060e25c6940c5c07ba27405 Mon Sep 17 00:00:00 2001 From: German Date: Thu, 22 Feb 2024 13:34:25 +0100 Subject: [PATCH 20/32] installing xindy --- .github/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8629f669d9..08e5e09a3a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -142,7 +142,8 @@ jobs: - name: "Install OS packages" run: | sudo apt update - sudo apt install zip pandoc libgl1-mesa-glx xvfb texlive-latex-extra latexmk graphviz texlive-xetex texlive-fonts-extra qpdf + sudo apt install zip pandoc libgl1-mesa-glx xvfb texlive-latex-extra latexmk graphviz texlive-xetex texlive-fonts-extra qpdf texlive-xetex xindy + - name: "Test virtual framebuffer" run: | From 6d87237bedfef47a279414be61c24b0a34c02f20 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 15 Apr 2024 21:44:07 +0000 Subject: [PATCH 21/32] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/psf/black: 24.3.0 → 24.4.0](https://github.com/psf/black/compare/24.3.0...24.4.0) - [github.com/python-jsonschema/check-jsonschema: 0.28.1 → 0.28.2](https://github.com/python-jsonschema/check-jsonschema/compare/0.28.1...0.28.2) --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e07fae65e0..b2c044b318 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -26,7 +26,7 @@ repos: ) - repo: https://github.com/psf/black - rev: 24.3.0 # If version changes --> modify "blacken-docs" manually as well. + rev: 24.4.0 # If version changes --> modify "blacken-docs" manually as well. hooks: - id: black args: @@ -65,6 +65,6 @@ repos: # this validates our github workflow files - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.28.1 + rev: 0.28.2 hooks: - id: check-github-workflows From d57fcfc81a2659f20a4724238e48e19974d93150 Mon Sep 17 00:00:00 2001 From: German Date: Tue, 16 Apr 2024 10:15:59 +0200 Subject: [PATCH 22/32] Updating black in blacken --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b2c044b318..0c7f353285 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -36,7 +36,7 @@ repos: rev: 1.16.0 hooks: - id: blacken-docs - additional_dependencies: [black==24.3.0] + additional_dependencies: [black==24.4.0] - repo: https://github.com/PyCQA/flake8 rev: 7.0.0 From 84892c4375f230cb43f7bf8ad37b5109a57cf4ca Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 29 Apr 2024 21:49:44 +0000 Subject: [PATCH 23/32] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/ansys/pre-commit-hooks: v0.2.9 → v0.3.1](https://github.com/ansys/pre-commit-hooks/compare/v0.2.9...v0.3.1) - [github.com/psf/black: 24.4.0 → 24.4.2](https://github.com/psf/black/compare/24.4.0...24.4.2) --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3e9334dc64..097426472a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,7 +3,7 @@ fail_fast: True repos: - repo: https://github.com/ansys/pre-commit-hooks - rev: v0.2.9 + rev: v0.3.1 hooks: - id: add-license-headers @@ -26,7 +26,7 @@ repos: ) - repo: https://github.com/psf/black - rev: 24.4.0 # If version changes --> modify "blacken-docs" manually as well. + rev: 24.4.2 # If version changes --> modify "blacken-docs" manually as well. hooks: - id: black args: From 1136f79e73c46651877f1ea8bf82524c657d6b5d Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 29 Apr 2024 21:52:05 +0000 Subject: [PATCH 24/32] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- LICENSE | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/LICENSE b/LICENSE index 1327840468..0add15780d 100644 --- a/LICENSE +++ b/LICENSE @@ -1,13 +1,13 @@ MIT License -Copyright (c) 2024 ANSYS, Inc. All rights reserved. +Copyright (c) 2024 ANSYS, Inc. and/or its affiliates. -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies +of the Software, and to permit persons to whom the Software is furnished to do +so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. From 4a6d8ea2dbd5b516227d26cd1166cfe23dd02d4e Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 5 Aug 2024 22:26:31 +0000 Subject: [PATCH 25/32] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/ansys/pre-commit-hooks: v0.3.1 → v0.4.2](https://github.com/ansys/pre-commit-hooks/compare/v0.3.1...v0.4.2) - [github.com/psf/black: 24.4.2 → 24.8.0](https://github.com/psf/black/compare/24.4.2...24.8.0) - [github.com/PyCQA/flake8: 7.1.0 → 7.1.1](https://github.com/PyCQA/flake8/compare/7.1.0...7.1.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 016aeaac6f..0509a68b95 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,7 +3,7 @@ fail_fast: True repos: - repo: https://github.com/ansys/pre-commit-hooks - rev: v0.3.1 + rev: v0.4.2 hooks: - id: add-license-headers args: @@ -28,7 +28,7 @@ repos: ) - repo: https://github.com/psf/black - rev: 24.4.2 # If version changes --> modify "blacken-docs" manually as well. + rev: 24.8.0 # If version changes --> modify "blacken-docs" manually as well. hooks: - id: black args: @@ -41,7 +41,7 @@ repos: additional_dependencies: [black==24.4.2] - repo: https://github.com/PyCQA/flake8 - rev: 7.1.0 + rev: 7.1.1 hooks: - id: flake8 From 601b1dc0a99d07a345e9673d0c317e0d081a9751 Mon Sep 17 00:00:00 2001 From: pyansys-ci-bot <92810346+pyansys-ci-bot@users.noreply.github.com> Date: Mon, 5 Aug 2024 22:27:44 +0000 Subject: [PATCH 26/32] chore: adding changelog file 3330.miscellaneous.md --- doc/changelog.d/3330.miscellaneous.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 doc/changelog.d/3330.miscellaneous.md diff --git a/doc/changelog.d/3330.miscellaneous.md b/doc/changelog.d/3330.miscellaneous.md new file mode 100644 index 0000000000..b42b241032 --- /dev/null +++ b/doc/changelog.d/3330.miscellaneous.md @@ -0,0 +1 @@ +[pre-commit.ci] pre-commit autoupdate \ No newline at end of file From 6860362f04ac08396ac0b85e4cab1564ede376fe Mon Sep 17 00:00:00 2001 From: German <28149841+germa89@users.noreply.github.com> Date: Tue, 6 Aug 2024 20:47:39 +0200 Subject: [PATCH 27/32] Update .pre-commit-config.yaml --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0509a68b95..eb49b42f0a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -38,7 +38,7 @@ repos: rev: 1.18.0 hooks: - id: blacken-docs - additional_dependencies: [black==24.4.2] + additional_dependencies: [black==24.8.0] - repo: https://github.com/PyCQA/flake8 rev: 7.1.1 From b7017889bf5f336637e4469bdd6ada41a53bbde2 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 27 Jan 2025 22:24:34 +0000 Subject: [PATCH 28/32] ci: pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/codespell-project/codespell: v2.3.0 → v2.4.0](https://github.com/codespell-project/codespell/compare/v2.3.0...v2.4.0) --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 57284cc2dc..4c51fed89d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -57,7 +57,7 @@ repos: - id: flake8 - repo: https://github.com/codespell-project/codespell - rev: v2.3.0 + rev: v2.4.0 hooks: - id: codespell args: ["--toml", "pyproject.toml"] From 8aadb19a46896454807d079cf6476aeacc39c117 Mon Sep 17 00:00:00 2001 From: pyansys-ci-bot <92810346+pyansys-ci-bot@users.noreply.github.com> Date: Mon, 27 Jan 2025 22:25:41 +0000 Subject: [PATCH 29/32] chore: adding changelog file 3710.maintenance.md [dependabot-skip] --- doc/changelog.d/3710.maintenance.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 doc/changelog.d/3710.maintenance.md diff --git a/doc/changelog.d/3710.maintenance.md b/doc/changelog.d/3710.maintenance.md new file mode 100644 index 0000000000..23264207b9 --- /dev/null +++ b/doc/changelog.d/3710.maintenance.md @@ -0,0 +1 @@ +ci: pre-commit autoupdate \ No newline at end of file From 208cb025a22e8574b1a34328a1ae2ccdb65215a2 Mon Sep 17 00:00:00 2001 From: German <28149841+germa89@users.noreply.github.com> Date: Wed, 29 Jan 2025 14:09:10 +0100 Subject: [PATCH 30/32] fix: pre-commit warnings --- .../ex_01-gmsh_example/modal_analysis.py | 2 +- examples/00-mapdl-examples/pressure_vessel.py | 2 +- examples/00-mapdl-examples/pyvista_mesh.py | 2 +- src/ansys/mapdl/core/post.py | 10 +++++----- tests/test_dpf.py | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/doc/source/examples/extended_examples/ex_01-gmsh_example/modal_analysis.py b/doc/source/examples/extended_examples/ex_01-gmsh_example/modal_analysis.py index f5f3df7173..485402e754 100644 --- a/doc/source/examples/extended_examples/ex_01-gmsh_example/modal_analysis.py +++ b/doc/source/examples/extended_examples/ex_01-gmsh_example/modal_analysis.py @@ -35,7 +35,7 @@ mapdl.shpp("SUMM") # specify material properties -# using aprox values for AISI 5000 Series Steel +# using approximated values for AISI 5000 Series Steel mapdl.units("SI") mapdl.mp("EX", 1, 200e9) # Elastic moduli in Pa (kg/(m*s**2)) mapdl.mp("DENS", 1, 7700) # Density in kg/m3 diff --git a/examples/00-mapdl-examples/pressure_vessel.py b/examples/00-mapdl-examples/pressure_vessel.py index 36c2fab461..10db4c3cc9 100644 --- a/examples/00-mapdl-examples/pressure_vessel.py +++ b/examples/00-mapdl-examples/pressure_vessel.py @@ -156,7 +156,7 @@ # access the result result = mapdl.result -# Get the von Mises stess and show that this is equivalent to the +# Get the von Mises stress and show that this is equivalent to the # stress obtained from MAPDL. nnum, stress = result.principal_nodal_stress(0) von_mises = stress[:, -1] # von-Mises stress is the right most column diff --git a/examples/00-mapdl-examples/pyvista_mesh.py b/examples/00-mapdl-examples/pyvista_mesh.py index c1f9487ee8..c0d726d203 100644 --- a/examples/00-mapdl-examples/pyvista_mesh.py +++ b/examples/00-mapdl-examples/pyvista_mesh.py @@ -62,7 +62,7 @@ mapdl.emodif("ALL", "SECNUM", 1) # specify material properties -# using aprox values for AISI 5000 Series Steel +# using approximated values for AISI 5000 Series Steel # http://www.matweb.com/search/datasheet.aspx?matguid=89d4b891eece40fbbe6b71f028b64e9e mapdl.units("SI") # not necessary, but helpful for book keeping mapdl.mp("EX", 1, 200e9) # Elastic moduli in Pa (kg/(m*s**2)) diff --git a/src/ansys/mapdl/core/post.py b/src/ansys/mapdl/core/post.py index 57cbc59555..3ac2e471aa 100644 --- a/src/ansys/mapdl/core/post.py +++ b/src/ansys/mapdl/core/post.py @@ -2383,7 +2383,7 @@ def nodal_total_eqv_strain(self) -> np.ndarray: Examples -------- - Total quivalent strain for the current result. + Total equivalent strain for the current result. >>> mapdl.post_processing.nodal_total_eqv_strain() array([15488.84357602, 16434.95432337, 15683.2334295 , ..., @@ -2757,7 +2757,7 @@ def nodal_elastic_eqv_strain(self) -> np.ndarray: Examples -------- - Elastic quivalent strain for the current result. + Elastic equivalent strain for the current result. >>> mapdl.post_processing.nodal_elastic_eqv_strain() array([15488.84357602, 16434.95432337, 15683.2334295 , ..., @@ -3138,7 +3138,7 @@ def nodal_plastic_eqv_strain(self) -> np.ndarray: Examples -------- - Plastic quivalent strain for the current result + Plastic equivalent strain for the current result >>> mapdl.post_processing.nodal_plastic_eqv_strain() array([15488.84357602, 16434.95432337, 15683.2334295 , ..., @@ -3526,7 +3526,7 @@ def nodal_thermal_eqv_strain(self) -> np.ndarray: Examples -------- - Thermal quivalent strain for the current result. + Thermal equivalent strain for the current result. >>> mapdl.post_processing.nodal_thermal_eqv_strain() array([15488.84357602, 16434.95432337, 15683.2334295 , ..., @@ -3618,7 +3618,7 @@ def nodal_contact_friction_stress(self) -> np.ndarray: Examples -------- - Thermal quivalent strain for the current result. + Thermal equivalent strain for the current result. >>> mapdl.post_processing.nodal_contact_friction_stress() array([15488.84357602, 16434.95432337, 15683.2334295 , ..., diff --git a/tests/test_dpf.py b/tests/test_dpf.py index 882e4e1f7e..4d83004ad2 100644 --- a/tests/test_dpf.py +++ b/tests/test_dpf.py @@ -65,7 +65,7 @@ def test_upload(skip_dpf, mapdl, solved_box, tmpdir): # Download RST file rst_path = mapdl.download_result(str(tmpdir.mkdir("tmpdir"))) - # Stabilishing connection + # Establishing connection grpc_con = dpf.connect_to_server(port=DPF_PORT) assert grpc_con.live From a775fe1e0285502aed91c184ef8816eaeb5c558a Mon Sep 17 00:00:00 2001 From: pyansys-ci-bot <92810346+pyansys-ci-bot@users.noreply.github.com> Date: Wed, 29 Jan 2025 13:10:44 +0000 Subject: [PATCH 31/32] chore: adding changelog file 3710.documentation.md [dependabot-skip] --- doc/changelog.d/{3710.maintenance.md => 3710.documentation.md} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename doc/changelog.d/{3710.maintenance.md => 3710.documentation.md} (100%) diff --git a/doc/changelog.d/3710.maintenance.md b/doc/changelog.d/3710.documentation.md similarity index 100% rename from doc/changelog.d/3710.maintenance.md rename to doc/changelog.d/3710.documentation.md From 8e6b56f792e56192d113da78ff56becea7bde6b1 Mon Sep 17 00:00:00 2001 From: German <28149841+germa89@users.noreply.github.com> Date: Wed, 29 Jan 2025 14:11:27 +0100 Subject: [PATCH 32/32] maint: update codespell --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4c51fed89d..71f21944ba 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -57,7 +57,7 @@ repos: - id: flake8 - repo: https://github.com/codespell-project/codespell - rev: v2.4.0 + rev: v2.4.1 hooks: - id: codespell args: ["--toml", "pyproject.toml"]