.. _contribute: 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 the Visualization Interface Tool. The following contribution information is specific to the Visualization Interface Tool. Install in developer mode ------------------------- Installing the Visualization Interface Tool in developer mode allows you to modify and enhance the source. To clone and install the latest Visualization Interface Tool release in development mode, run these commands: .. code:: git clone https://github.com/ansys/ansys-tools-visualization-interface cd ansys-tools-visualization-interface python -m pip install --upgrade pip pip install -e . Run tests --------- The Visualization Interface Tool uses `pytest `_ for testing. #. Prior to running tests, you must run this command to install test dependencies:: pip install -e .[tests] #. To then run the tests, navigate to the root directory of the repository and run this command:: pytest Adhere to code style -------------------- The Visualization Interface Tool follows the PEP8 standard as outlined in `PEP 8 `_ in the *PyAnsys developer's guide* and implements style checking using `pre-commit `_. To ensure your code meets minimum code styling standards, run these commands:: pip install pre-commit pre-commit run --all-files You can also install this as a pre-commit hook by running this command:: pre-commit install 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" black....................................................................Passed blacken-docs.............................................................Passed isort....................................................................Passed flake8...................................................................Passed docformatter.............................................................Passed codespell................................................................Passed pydocstyle...............................................................Passed check for merge conflicts................................................Passed debug statements (python)................................................Passed check yaml...............................................................Passed trim trailing whitespace.................................................Passed Add License Headers......................................................Passed Validate GitHub Workflows................................................Passed Build the documentation ----------------------- You can build the Visualization Interface Tool documentation locally. #. Prior to building the documentation, you must run this command to install documentation dependencies:: pip install -e .[doc] #. To then build the documentation, navigate to the ``docs`` directory and run this command:: # On Linux or macOS make html # On Windows ./make.bat html The documentation is built in the ``docs/_build/html`` directory. You can clean the documentation build by running this command:: # On Linux or macOS make clean # On Windows ./make.bat clean Post issues ----------- Use the `Visualization Interface Tool Issues `_ page to report bugs and request new features. When possible, use the issue templates provided. If your issue does not fit into one of these templates, click the link for opening a blank issue. If you have general questions about the PyAnsys ecosystem, email `pyansys.core@ansys.com `_. If your question is specific to the Visualization Interface Tool, ask your question in an issue as described in the previous paragraph.