.. _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 before attempting to contribute to PyAnsys Units. The following contribution information is specific to PyAnsys Units. Clone and install ----------------- Clone and install the latest PyAnsys Units release in development mode with these commands: .. code:: console git clone https://github.com/ansys/pyansys-units.git cd pyansys-units pip install pip -U pip install -e . Build documentation ------------------- Build the PyAnsys Units documentation locally by running these commands in the root directory of the repository: .. code:: console pip install -e .[doc] 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 this command: .. code:: console make clean Post issues ----------- Use the `PyAnsys Units Issues `_ page to report bugs and request new features. Adhere to code style -------------------- PyAnsys Units is compliant with the `PyAnsys coding style `_. It uses `pre-commit `_ to check the code style. You can install and activate this tool with these commands: .. code:: console python -m pip install pre-commit pre-commit install You can then directly execute ``pre-commit`` with this command: .. code:: console pre-commit run --all-files --show-diff-on-failure