Coding style refers to the different rules defined in a software project that must be followed when writing source code. These rules ensure that all the source code looks the same across different files of the project.
Because the PyAnsys ecosystem consists of many projects, coding style rules are critical to:
Prevent against common programming errors
Limit product complexity
Provide an easily readable, understandable, and maintainable product
Establish a consistent style
Implement an objective basis for code review
The purpose of this section is not to repeat coding style documentation, but rather to describe coding best practices applicable to the PyAnsys project when there are any delineations, clarifications, or additional procedures above and beyond PEP 8. For example, this section provides a topic on deprecation best practices because there is no official guidance on deprecating features within Python.