pip install viur-toolkit
pipenv install viur-toolkit
from viur import toolkit
if toolkit.user_has_access("root"):
print("Hello root user!")Create a fork and clone it
cd viur-toolkit
pipenv install --dev
pipenv run precommit_installcd myproject
pipenv install -e path/to/viur-toolkitUse the lint command
$ pipenv run linttu run pep8check and type_check at once.
Setup the pre-commit hook with pipenv run precommit_install.
Depending on what kind of change your Pull Request contains, please submit your PR against the following branches:
- main: fixes/patches that fix a problem with existing code go into this branch. This results in a new patch version (X.X.n+1 where n is the current patch-level).
- develop: new features, refactorings, or adjustments for new versions of dependencies are added to this branch. This becomes a new minor version (X.n+1.0) where n is the current minor-level). Depending on the complexity of the changes, a new major release (n+1.0.0, where n is the current major level) may be chosen instead.