Linux dev environment steps
Prerequisites
Install system dependencies
Setup pyenv for project
pyenv virtualenv 3.10 hitfactorpy_sqlalchemy
: create a virtualenv named “hitfactorpy_sqlalchemy” using python v3.10
pyenv local hitfactorpy_sqlalchemy
: configure pyenv to use “hitfactorpy_sqlalchemy” for the current directory
pyenv activate hitfactorpy_sqlalchemy
: activate the virtualenv
poetry config virtualenvs.prefer-active-python true
- Verify output of
poetry env info
; the paths for Virtualenv
and System
should match the value of $PYENV_ROOT
(default: $HOME/.pyenv
)
Development
- Install dependencies:
poetry install
- Install pre-commit hooks:
pre-commit install
- Test:
poetry run tox
(or tox
, or pytest tests
)
- Build:
poetry build