- install poetry (globally or being inside the environment):
python3 -m pip install poetry
# or (being in env)
pip install poetry
- Install packages
poetry install
- setup venv in PyCharm (if not created automatically). To get info about env created by poetry run
poetry env info
- setup pre-commit git hooks
pre-commit install
meh. no .env files rn
- Copy env config:
# if running in docker (TODO)
cp .env.template .env.local.docker
# if running on local
cp .env.template .env.local
- Add editor / IDE integration for black formatter https://black.readthedocs.io/en/stable/integrations/editors.html
- Add dev dependencies
poetry add -D install pre-commit
- Run
pre-commit
against all the files
pre-commit run --all-files
- Install a pre-prelease package:
poetry add --allow-prereleases "aioredis>=2.0.0b1"
- Install a pre-prelease package with extras:
poetry add --allow-prereleases "aioredis[hiredis]>=2.0.0b1"