File: CONTRIBUTING.md

package info (click to toggle)
geojson-pydantic 2.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 216 kB
  • sloc: python: 1,503; makefile: 3
file content (38 lines) | stat: -rw-r--r-- 863 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Contributing

To run the tests, first install the package in a virtual environment:

```sh
virtualenv venv
source venv/bin/activate
python -m pip install -e '.[test]'
```

You can then run the tests with the following command:

```sh
python -m pytest --cov geojson_pydantic --cov-report term-missing
```

This repo is set to use pre-commit to run `isort`, `flake8`, `pydocstring`, `black` ("uncompromising Python code formatter") and `mypy` when committing new code.

``` sh
pre-commit install
```


## Release

we use https://github.com/c4urself/bump2version to update the package version.

```
# Install bump2version
$ pip install --upgrade bump2version

# Update version (edit files, commit and create tag)
# this will do `0.2.1 -> 0.2.2` because we use the `patch` tag
$ bump2version patch

# Push change and tag to github
$ git push origin main --tags
```