| 1 |
# Contributing |
| 2 |
|
| 3 |
Issues and pull requests are more than welcome. |
| 4 |
|
| 5 |
We recommand using [`uv`](https://docs.astral.sh/uv) as project manager for development. |
| 6 |
|
| 7 |
See https://docs.astral.sh/uv/getting-started/installation/ for installation |
| 8 |
|
| 9 |
### dev install |
| 10 |
|
| 11 |
```sh |
| 12 |
git clone https://github.com/developmentseed/geojson-pydantic.git |
| 13 |
cd geojson-pydantic |
| 14 |
|
| 15 |
uv sync |
| 16 |
``` |
| 17 |
|
| 18 |
You can then run the tests with the following command: |
| 19 |
|
| 20 |
```sh |
| 21 |
uv run pytest --cov geojson_pydantic --cov-report term-missing |
| 22 |
``` |
| 23 |
|
| 24 |
This repo is set to use pre-commit to run `isort`, `flake8`, `pydocstring`, `black` ("uncompromising Python code formatter") and `mypy` when committing new code. |
| 25 |
|
| 26 |
``` sh |
| 27 |
uv run pre-commit install |
| 28 |
``` |
| 29 |
|
| 30 |
|
| 31 |
## Release |
| 32 |
|
| 33 |
we use https://github.com/callowayproject/bump-my-version to update the package version. |
| 34 |
|
| 35 |
``` |
| 36 |
# Update version (edit files, commit and create tag) |
| 37 |
# this will do `0.2.1 -> 0.2.2` because we use the `patch` tag |
| 38 |
$ uv run --with bump-my-version bump-my-version bump patch |
| 39 |
|
| 40 |
# Push change and tag to github |
| 41 |
$ git push origin main --tags |
| 42 |
``` |