@@ -23,7 +23,7 @@ Aside from pyansys specific directives, the best coding practice is to simply
2323follow established guidelines from `PEP8 <https://www.python.org/dev/peps/pep-0008/ >`__.
2424
2525
26- Deprecation Best- Practice
26+ Deprecation Best Practice
2727-------------------------
2828Whenever a method, class, or function is deprecated, we must provide
2929an old method that calls the new method and raises a warning, or raise
@@ -108,11 +108,11 @@ Then simply use that inplace of ``Exception``
108108 """
109109 raise DeprecationError(' `my_function` has been deprecated' )
110110
111- Imports Best- Practice
111+ Imports Best Practice
112112---------------------
113113
114114Following the `PEP8 guidelines <https://www.python.org/dev/peps/pep-0008/#imports >`_,
115- imports should be added at the top of the file and should be grouped in the following order:
115+ imports should be added at the top of the file and should be grouped in this order:
116116
1171171. Standard library imports.
1181182. Related third party imports.
@@ -136,7 +136,7 @@ For example, consider the unorganized imports below:
136136 from ansys.mapdl.core.commands import Commands
137137 from ansys.mapdl.core.inline_functions import Query
138138
139- Organizing those same imports into groups vastly improves readibilty:
139+ Organizing these same imports into groups vastly improves readibilty:
140140
141141.. code :: python
142142
@@ -156,9 +156,9 @@ Organizing those same imports into groups vastly improves readibilty:
156156 from ansys.mapdl.core.commands import Commands
157157 from ansys.mapdl.core.inline_functions import Query
158158
159- It is also recommended that the imports within a section be organized alphabetically.
160- Following this convention makes imports easily searchable. This standard is optional
161- and will not be enforced, but it may be preferred in some projects.
159+ We also recommend that the imports within a section be organized alphabetically.
160+ Following this convention makes imports easily searchable. While this standard is optional,
161+ it may be preferred in some projects.
162162
163163.. code :: python
164164
@@ -178,7 +178,7 @@ and will not be enforced, but it may be preferred in some projects.
178178 from ansys.mapdl.core.plotting import general_plotter
179179 from ansys.mapdl.core.post import PostProcessing
180180
181- Additionally, it is recommended to use absolute imports over relative imports, since they are
181+ Additionally, we recommend to use absolute imports over relative imports because they are
182182more readable and reliable:
183183
184184.. code :: python
@@ -201,7 +201,7 @@ method or feature is added, changed, or removed, the minor version
201201should be bumped.
202202
203203To avoid constantly bumping the minor version, one approach to for
204- source- control branching is to create release branches where only
204+ source control branching is to create release branches where only
205205patch fixes are pushed to, and API changes occur between minor
206206releases. See `Trunk Based Development
207207<https://trunkbaseddevelopment.com/> `_. In summary, the mainline
@@ -218,7 +218,7 @@ update any projects dependent on the API while still being treated as
218218multiple "release branches" in a repository, the number of active
219219release branches should be between one and three.
220220
221- Docstring Examples Best- Practice
221+ Docstring Examples Best Practice
222222--------------------------------
223223Defining docstring examples for methods and classes are extremely
224224useful. The examples give users an easy place to start when trying
@@ -228,7 +228,7 @@ also be used to perform regression testing to verify that the code is
228228executing as expected.
229229
230230This is an important feature of maintainable documentation as examples
231- must always match the API they are documenting, and any changes within
231+ must always match the API that they are documenting. Any changes within
232232the API without a corresponding change in the documentation will
233233trigger doctest failures.
234234
@@ -252,11 +252,11 @@ execute them to verify that they function as written.
252252Using ``pytest `` Fixtures
253253~~~~~~~~~~~~~~~~~~~~~~~~~
254254To define a setup sequence before the ``doctest `` run or before a given
255- module is tested, ``pytest `` fixtures can be used. Fixtures allow docstring
256- examples to access shared objects, so there is no need to repeat the setup
255+ module is tested, you can use ``pytest `` fixtures. Because fixtures allow docstring
256+ examples to access shared objects, there is no need to repeat the setup
257257in each example.
258258
259- ``pytest `` fixtures can defined in a ``conftest.py `` file next to the source
259+ You can define ``pytest `` fixtures in a ``conftest.py `` file next to the source
260260code. The following example shows a fixture that is run automatically for
261261each ``doctest `` session.
262262
@@ -276,7 +276,7 @@ each ``doctest`` session.
276276 yield desktop
277277 desktop.force_close_desktop()
278278
279- Fixtures can also be defined in a separate Python file from
279+ You can also define fixtures in a separate Python file from
280280``conftest.py ``. This may help keep the fixtures more organized. Fixtures
281281from other files need to be imported in the main ``conftest.py `` file. The
282282following example shows how to import fixtures defined in an
@@ -345,7 +345,7 @@ example, by referencing the key ``icepak``.
345345 Examples
346346 --------
347347
348- Create an opening boundary for the faces of the " USB_GND" object.
348+ Create an opening boundary for the faces of the `` USB_GND`` object.
349349
350350 >>> faces = icepak.modeler.primitives["USB_GND"].faces
351351 >>> face_names = [face.id for face in faces]
@@ -358,7 +358,7 @@ example, by referencing the key ``icepak``.
358358 Useful Features
359359~~~~~~~~~~~~~~~
360360
361- Ellipses For Random Output
361+ Ellipses for Random Output
362362**************************
363363If the output of some operation in an example cannot be verified exactly,
364364an ellipsis (``... ``) can be used in the expected output. This allows it
0 commit comments