Contributing¶
Contributions are welcome, and they are greatly appreciated! Every little bit helps, and credit will always be given.
Environment setup¶
Nothing easier!
Fork and clone the repository, then:
cd mkdocstrings-zig
make setup
Note
If it fails for some reason, you'll need to install uv manually.
You can install it with:
curl -LsSf https://astral.sh/uv/install.sh | sh
Now you can try running make setup
again, or simply uv sync
.
You now have the dependencies installed.
Run make help
to see all the available actions!
Tasks¶
The entry-point to run commands and tasks is the make
Python script, located in the scripts
directory. Try running make
to show the available commands and tasks. The commands do not need the Python dependencies to be installed,
while the tasks do. The cross-platform tasks are written in Python, thanks to duty.
If you work in VSCode, we provide an action to configure VSCode for the project.
Development¶
As usual:
- create a new branch:
git switch -c feature-or-bugfix-name
- edit the code and/or the documentation
Before committing:
- run
make format
to auto-format the code - run
make check
to check everything (fix any warning) - run
make test
to run the tests (fix any issue) - if you updated the documentation or the project dependencies:
- run
make docs
- go to http://localhost:8000 and check that everything looks good
- run
- follow our commit message convention
If you are unsure about how to fix or ignore a warning, just let the continuous integration fail, and we will help you during review.