-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8577765
commit bb96c66
Showing
2 changed files
with
59 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# Contributing | ||
|
||
## Development | ||
|
||
### Setting up a development environment | ||
|
||
If you don't have a local development environment, you can follow these steps to set one up. | ||
|
||
First, if you have not already, install [poetry](https://python-poetry.org/). | ||
|
||
Now, initialize the project: | ||
|
||
```bash | ||
make init | ||
``` | ||
|
||
### Running tests | ||
|
||
You can run the tests with: | ||
|
||
```bash | ||
make tests | ||
``` | ||
|
||
This will run the tests with [pytest](https://docs.pytest.org/en/latest/) and show information about the coverage. | ||
|
||
### Formatting the code | ||
|
||
To format the code, you can use the command: | ||
|
||
```bash | ||
make formatting | ||
``` | ||
|
||
This will run the [isort](https://github.com/PyCQA/isort) and [black](https://github.com/psf/black) commands. | ||
|
||
### Releasing a new version | ||
|
||
To release a new version, you need to follow these steps: | ||
|
||
1. Update the version with `poetry version <version>` and commit the changes. This project follows [Semantic Versioning](http://semver.org/), so the version number should follow the format `<major>.<minor>.<patch>`. Alternatively, you can also use the version as `major` or `minor` or `patch`, and the version number will be automatically incremented. | ||
|
||
2. Create a Github release with the new version number. | ||
|
||
3. (Optional) Publish the new version to PyPI with `poetry publish --build`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters