Contributing¶
Requirements¶
Python >= 3.9 - minimal runtime requirement for the project.
CPU architecture: x86_64.
Zig == 0.15.1 - required for building native libraries.
Important
Building the documentation locally requires Python >= 3.11.
Quickstart¶
Fork the repository.
Clone the repository and enter project directory.
Create and activate a virtual environment.
Install developer dependencies:
pip install -r dev-requirements.txt
Install the package in editable mode:
pip install -e .
Note
Installing in editable mode will automatically trigger a build of the native libraries in release-mode. It is recommended to rebuild the libraries manually afterwards in debug-mode, following the steps in Building native libraries (Zig). Otherwise, you are ready to go.
Building native libraries (Zig)¶
Install Zig 0.15.1 (download from the Zig website or use your package manager).
Verify Zig’s version:
zig versionBuild the native libraries:
python build_libs.pyNote
If you make changes to the C-API, you must rebuild the libraries afterwards.
Running tests¶
Run tests:
pytest tests
Quality checks¶
Run pylint:
pylint zyntexRun pyright:
pyright zyntex
Commit & PR guidelines¶
Keep PRs small and focused — one logical change per PR.
Ensure all tests pass locally before pushing.
Provide a short description of what the PR changes and why.
Link related issues or discussions in the PR description.
Appendix: Recommended local workflow¶
Create branch.
Implement change + add tests.
Run tests and quality checks.
Run docs build if your change affects documentation.
Push branch and open PR.