Development Setup
This guide will help you set up your development environment for contributing to gitx.
Prerequisites
- Python 3.12 or later
- Poetry for dependency management
- Git
Development Installation
[!NOTE] This project is currently in the development stage. This installation guide provides instructions for both using and contributing to the project.
-
Clone the repository. (If you are using a fork of the repository, replace the GitHub repo url with your own)
-
This project uses poetry for package management. Install poetry with the following steps: (Skip this step if you have poetry installed)
- On Linux / MacOS / WSL
- On Windows (powershell)
- Verify the installation with the command: (should say v2.0.0 or above)
-
Install Project Dependencies. Inside the project directory (at root level), run the following commands:
This should install all the necessary dependencies for the project.
-
To activate the virtual environment created by poetry, run the following commands:
- On Linux / MacOS / WSL (bash)
- On Windows (powershell)
[!NOTE] For further information about poetry and managing environments refer to the poetry docs.
Running Tests
Run the test suite using pytest:
Building Documentation
To build and preview the documentation locally:
This will start a local server at http://127.0.0.1:8000/ where you can preview your documentation.
Previous: Contribution Guidelines