Contributions are welcome. Feel free to open an issue in our issue tracker and/or create a pull request.
You need a Python interpreter and uv installed.
Then simply run
uv venv # to setup your virtual environment
uv sync --extra dev # to install all dependencies
uv run pytest # to run all unit testsTo run a development version of a script for testing eg. a hook on another repo, run:
uv sync # to install current scripts in a virtualenv
source .venv/bin/activate # to activate the virtualenv
# And then eg.
cd <another_repo>
check-ownership file1 file2An alternative to the above is to run:
pip3 install -e .That will install the tools in editable mode, meaning that your code changes will be visible as soon as you run the scripts again.
To release a new version of dev-tools:
- update the pyproject.toml
versionfield, - put up a PR and get it merged to master,
- once merged, create a tag with the same version and push it,
- a release pipeline will run automatically and push a release.