Skip to content

Latest commit

 

History

History
76 lines (50 loc) · 1.77 KB

CONTRIBUTING.md

File metadata and controls

76 lines (50 loc) · 1.77 KB

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 ansys-tools-visualization-interface.

The following contribution information is specific to Ansys Tools Visualization Interface.

Clone the repository

To clone and install the latest Ansys Tools Visualization Interface release in development mode, run these commands:

git clone https://github.com/ansys/ansys-tools-visualization-interface/
cd ansys-tools-visualization-interface
python -m pip install --upgrade pip
pip install -e .

Adhere to code style

Ansys Tools Visualization Interface 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

Run the tests

Prior to running the tests, you must run this command to install the test dependencies:

pip install -e .[tests]

To run the tests, navigate to the root directory of the repository and run this command:

pytest

Build the documentation

Prior to building the documentation, you must run this command to install the documentation dependencies:

pip install -e .[doc]

To build the documentation, run the following commands:

cd doc

# On linux
make html

# On windows
./make.bat html

The documentation is built in the docs/_build/html directory.