feat: add .env support
For #2 (closed)
What does this MR do?
Adds some .env support using python-dotenv. Fairly self explanatory, but for the uninitiated:
- you can provide your secrets / environment variables in a
.envfile. Don't commit the.envto the repo. - when running the
ucam-gitlab-statsAPI, you can either provide the token as an env var, or put it in the.env.
Checks
Added a .env file with GITLAB_TOKEN=... then ran the following locally:
poetry run ucam-gitlab-stats --labels "team::Identity" --print-iterations --week-count=13 14
All worked as expected
Edited by Benjamin Woods