Contributing
The development of StagPy is made using the Git version control system. The first three chapters of the Git book should give you all the necessary basic knowledge to use Git for this project.
If you want to contribute to development of StagPy, create an account on GitHub and fork the StagPy repository.
To get a local copy of your fork of StagPy, clone it (here using the SSH protocol:
Then add a remote (here called upstream
) pointing to the main StagPy
repository:
To sync your fork with the main repository, you can run the following:
To add your own modifications, create a new branch from the tip of master:
where branch-name
is the desired branch name. Modify the code as desired,
commit it, and push it on your fork:
You can then create a PR from your fork on GitHub to have your changes incorporated in the main repository and made available to other users.
Testing
StagPy uses uv to manage dev environments. It also uses just to run commands.
Launching just
from anywhere in the repository will automatically run checks
and tests in a virtual environment. Before submitting modifications to the
code, please make sure they pass the tests by running just
.
Documentation
The StagPy documentation is built with MkDocs. To build it locally, run: