.. _ref_contributing: ========== Contribute ========== Overall guidance on contributing to a PyAnsys library appears in the `Contributing `_ topic in the *PyAnsys Developer's Guide*. Ensure that you are thoroughly familiar with this guide, paying particular attention to the `Coding Style `_ topic, before attempting to contribute to PyFluent. The following contribution information is specific to PyFluent. Clone the repository -------------------- To clone and install the latest PyFluent release in development mode, run: .. code:: git clone https://github.com/ansys/pyfluent.git cd pyfluent pip install pip -U pip install -e . Build documentation ------------------- To build the PyFluent documentation locally, in the root directory of the repository, run: .. code:: pip install -r requirements/requirements_doc.txt cd doc make html After the build completes, the HTML documentation is located in the ``_builds/html`` directory. You can load the ``index.html`` file in this directory into a web browser. You can clear all HTML files from the ``_builds/html`` directory with: .. code:: make clean Post issues ----------- Use the `PyFluent Issues `_ page to submit questions, report bugs, and request new features. Adhere to code style -------------------- PyFluent is compliant with the `PyAnsys code style `_. It uses the tool `pre-commit `_ to check the code style. You can install and activate this tool with: .. code:: bash python -m pip install pre-commit pre-commit install You can then use the ``style`` rule defined in ``Makefile`` with: .. code:: bash make style Or, you can directly execute `pre-commit `_ with: .. code:: bash pre-commit run --all-files --show-diff-on-failure