.. _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 PyAnsys Geometry-MCP. The following contribution information is specific to PyAnsys Geometry-MCP. Install in developer mode -------------------------- Installing PyAnsys Geometry-MCP in developer mode allows you to modify and enhance the source. To clone and install the latest PyAnsys Geometry-MCP release in development mode, run these commands: .. code:: git clone https://github.com/ansys/pyansys-geometry-mcp cd pyansys-geometry-mcp python -m pip install --upgrade pip pip install -e . Run tests --------- PyAnsys Geometry-MCP 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 -------------------- PyAnsys Geometry-MCP 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" blacken-docs.............................................................Passed codespell................................................................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 ruff check...............................................................Passed ruff format..............................................................Passed Build the documentation ----------------------- You can build PyAnsys Geometry-MCP 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 ``doc`` directory and run this command:: # On Linux or macOS make html # On Windows ./make.bat html The documentation is built in the ``doc/_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 PyAnsys Geometry-MCP `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 PyAnsys Geometry-MCP, ask your question in an issue as described in the previous paragraph.