chore(taskfile): include dotenv in templates

This commit is contained in:
Michele Cereda
2025-02-28 17:29:33 +03:00
parent 5ce2169e49
commit 06512d013f

View File

@@ -6,8 +6,14 @@ set:
- pipefail # -o pipefail
vars:
# REPOSITORY_ROOT:
# sh: git rev-parse --show-toplevel
VENV_DIR: '{{ .ROOT_TASKFILE }}/.venv'
dotenv:
- .env
- .env.local
tasks:
dev-tools:bootstrap:
@@ -26,7 +32,8 @@ tasks:
REQUIREMENTS_FILE: '{{ .ROOT_TASKFILE }}/requirements.txt'
cmds:
- python{{ .PYTHON_VERSION }} -m 'venv' '{{ .VENV_DIR }}'
- "{{.VENV_DIR}}/bin/pip --require-virtualenv install -r '{{.REQUIREMENTS_FILE}}'"
- >-
{{ .VENV_DIR }}/bin/pip --require-virtualenv install -r '{{ .REQUIREMENTS_FILE }}'
python:venv:recreate:
cmds: