diff --git a/doc/source/contributing.rst b/doc/source/contributing.rst index 537aa5b33..f49137d27 100644 --- a/doc/source/contributing.rst +++ b/doc/source/contributing.rst @@ -155,10 +155,21 @@ This way, it's not possible for you to push code that fails the style checks:: $ pre-commit install $ git commit -am "added my cool feature" + check pre-commit.ci config...............................................Passed black....................................................................Passed + blacken-docs.............................................................Passed isort....................................................................Passed flake8...................................................................Passed codespell................................................................Passed + Add License Headers......................................................Passed + Ansys Technical Review...................................................Passed + pydocstyle...............................................................Passed + check for merge conflicts................................................Passed + debug statements (python)................................................Passed + check yaml...............................................................Passed + trim trailing whitespace.................................................Passed + check for added large files..............................................Passed + Validate GitHub Workflows................................................Passed Documentation ------------- @@ -201,8 +212,8 @@ Use the `PyMechanical Issues `_ page to submit questions, report bugs, and request new features. When possible, use these templates: -* Bug report -* Feature request +* `Bug report `_ +* `Feature request `_ If your issue does not fit into one of these template categories, create your own issue. diff --git a/doc/source/examples/index.rst b/doc/source/examples/index.rst index a4ef3a148..73527814a 100644 --- a/doc/source/examples/index.rst +++ b/doc/source/examples/index.rst @@ -11,14 +11,12 @@ an embedded instance or remote session. .. grid-item-card:: Embedding Examples :padding: 2 2 2 2 :link: https://embedding.examples.mechanical.docs.pyansys.com/examples/index.html - :text-align: center Uses PyMechanical to embed an instance of Mechanical directly within Python as a Python object. .. grid-item-card:: Remote Session Examples :padding: 2 2 2 2 :link: https://examples.mechanical.docs.pyansys.com/examples/index.html - :text-align: center Uses PyMechanical as a client to a remote Mechanical instance. @@ -27,7 +25,6 @@ an embedded instance or remote session. .. grid-item-card:: Embedding Instance & Remote Session Example :padding: 2 2 2 2 :link: gallery_examples/embedding_n_remote/embedding_remote.html - :text-align: center Demonstrates the same model setup in both an embedded instance and remote session, as well as examples using a combination of embedded instances and remote sessions. diff --git a/doc/source/kil/index.rst b/doc/source/kil/index.rst index 3f32af7a7..ec8360c78 100644 --- a/doc/source/kil/index.rst +++ b/doc/source/kil/index.rst @@ -24,14 +24,12 @@ Ansys recommends that you always use the latest version of both to achieve the b .. grid-item-card:: :fas:`fa-solid fa-gears` Mechanical :link: mechanical :link-type: doc - :text-align: center Known issues and limitations of Standalone Mechanical .. grid-item-card:: :fab:`fa-brands fa-python` PyMechanical :link: pymechanical :link-type: doc - :text-align: center Known issues and limitations of PyMechanical diff --git a/tests/embedding/test_app.py b/tests/embedding/test_app.py index 3cfda59bd..0ba5a3883 100644 --- a/tests/embedding/test_app.py +++ b/tests/embedding/test_app.py @@ -312,3 +312,15 @@ def test_rm_lockfile(embedded_app, tmp_path: pytest.TempPathFactory): lockfile_path = os.path.join(embedded_app.DataModel.Project.ProjectDirectory, ".mech_lock") # Assert lock file path does not exist assert not os.path.exists(lockfile_path) + + +@pytest.mark.embedding +def test_gui_on_save(embedded_app, tmp_path: pytest.TempPathFactory): + """Test lock file is removed on close of embedded application.""" + mechdat_path = os.path.join(tmp_path, "test.mechdat") + embedded_app.save(mechdat_path) + embedded_app.close() + + # lockfile_path = os.path.join(embedded_app.DataModel.Project.ProjectDirectory, ".mech_lock") + # Assert lock file path does not exist + assert False