- If you don't have
Poetry
installed run:
make poetry-install
This installs Poetry as a standalone application. If you prefer, you can simply install it inside your virtual environment.
- Initialize project dependencies with poetry and install
pre-commit
hooks:
make install-dev
make pre-commit-install
You're then ready to run and test your contributions.
To activate your virtualenv
run poetry shell
.
Want to know more about Poetry? Check its documentation.
Poetry's commands let you easily make descriptive python environments and run commands in those environments, like:
poetry add numpy@latest
poetry run pytest
poetry publish --build
etc.
- Run linting checks:
make lint-all
- Run
pytest
with
make test
- Upload your changes to your fork, then make a PR from there to the main repo:
git checkout -b your-branch
git add .
git commit -m ":tada: Initial commit"
git remote add origin https://github.com/your-fork/stac-model.git
git push -u origin your-branch
Building a new version of stac-model
contains steps:
- Bump the version with
poetry version <version>
. You can pass the new version explicitly, or a rule such asmajor
,minor
, orpatch
. For more details, refer to the Semantic Versions standard; - Make a commit to
GitHub
; - Create a
GitHub release
; - And... publish :slight_smile:
poetry publish --build
Before submitting your code please do the following steps:
- Add any changes you want
- Add tests for the new changes
- Edit documentation if you have changed something significant
- Run
make codestyle
to format your changes. - Run
make lint-all
to ensure that types, security and docstrings are okay.
You can contribute by spreading a word about this library. It would also be a huge contribution to write a short article on how you are using this project. You can also share how the ML Model extension does or does not serve your needs with us in the Github Discussions or raise Issues for bugs.