-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #167 from lahovniktadej/main
Contribution guide
- Loading branch information
Showing
2 changed files
with
86 additions
and
1 deletion.
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
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,85 @@ | ||
# Contributing to Sport Activities Features | ||
:+1::tada: First off, thanks for taking the time to contribute! :tada::+1: | ||
|
||
## Code of Conduct | ||
This project and everyone participating in it is governed by the [Sport Activities Features Code of Conduct](CODE_OF_CONDUCT.md). By participating, you are expected to uphold this code. Please report unacceptable behavior to [iztok.fister1@um.si](mailto:iztok.fister1@um.si). | ||
|
||
## How Can I Contribute? | ||
|
||
### Reporting Bugs | ||
Before creating bug reports, please check existing issues list as you might find out that you don't need to create one. When you are creating a bug report, please include as many details as possible in the [issue template](.github/templates/ISSUE_TEMPLATE.md). | ||
|
||
### Suggesting Enhancements | ||
|
||
Open new issue using the [feature request template](.github/templates/FEATURE_REQUEST.md). | ||
|
||
### Pull requests | ||
|
||
Fill in the [pull request template](.github/templates/PULL_REQUEST.md) and make sure your code is documented. | ||
|
||
## Setup development environment | ||
|
||
### Requirements | ||
|
||
* Poetry: [https://python-poetry.org/docs](https://python-poetry.org/docs) | ||
|
||
After installing Poetry and cloning the project from GitHub, you should run the following command from the root of the cloned project: | ||
|
||
```sh | ||
poetry install | ||
``` | ||
|
||
All of the project's dependencies should be installed and the project ready for further development. **Note that Poetry creates a separate virtual environment for your project.** | ||
|
||
### Dependencies | ||
|
||
| Package | Version | Platform | | ||
|------------|:-------:|:--------:| | ||
| matplotlib | ^3.3.3 | All | | ||
| geopy | ^2.0.0 | All | | ||
| overpy | ^0.6 | All | | ||
| geotiler | ^0.14.5 | All | | ||
| numpy | 1.24 | All | | ||
| tcxreader | ^0.4.4 | All | | ||
| pandas | * | All | | ||
| niaaml | ^1.1.12 | All | | ||
| tcx2gpx | 0.1.4 | All | | ||
| gpxpy | 1.4.2 | All | | ||
|
||
#### Development dependencies | ||
|
||
| Package | Version | Platform | | ||
|---------|:--------:|:--------:| | ||
| ruff | ^0.0.292 | Any | | ||
|
||
#### Test dependencies | ||
|
||
| Package | Version | Platform | | ||
|------------|:--------:|:--------:| | ||
| pytest | ^7.2.2 | Any | | ||
| coveralls | ^2.2.0 | Any | | ||
|
||
#### Extras | ||
|
||
| Package | Version | Platform | | ||
|----------------------|:-------:|:--------:| | ||
| sphinx | ^4.4.0 | Any | | ||
| sphinx-rtd-theme | ^1.0.0 | Any | | ||
|
||
## Development Tasks | ||
|
||
### Testing | ||
|
||
Manually run the tests: | ||
|
||
```sh | ||
poetry run pytest | ||
``` | ||
|
||
### Documentation | ||
|
||
Build the documentation: | ||
|
||
```sh | ||
poetry run sphinx-build ./docs ./docs/_build | ||
``` |