Home

Awesome

<p align='center'> <img src="images/trivia-box.png" width="600px"> <h1 align="center">trivia-box</h1> <p align="center">💻 Update a gist to contain a daily trivia question from Open Trivia DB</p> <p align="center"> <img src="https://github.com/ChrisCarini/trivia-box/workflows/Update%20gist%20with%20daily%20trivia/badge.svg?branch=main" alt="Update a gist to contain a daily trivia question from Open Trivia DB"> <img src="https://github.com/ChrisCarini/trivia-box/workflows/Linting%20%26%20Test/badge.svg?branch=main" alt="Lint & Test"> </p> </p>

🎒 Prep Work

  1. Create a new public GitHub Gist (https://gist.github.com/)
  2. Create a token with the gist scope and copy it. (https://github.com/settings/tokens/new)
  3. Copy the API token

🖥 Project Setup

  1. Go to your fork's Settings > Secrets > Add a new secret for each environment secret (below)

🤫 Environment Secrets

🤓 Hacking

Getting Setup

python3 -m venv venv
source activate
pip install -r requirements.txt

Saving Dependencies

source activate
pip-chill > requirements.txt

Running linting and tests

isort main.py trivia_box.py test/ && \
mypy main.py trivia_box.py test/ && \
flake8 main.py trivia_box.py test/ && \
blue --check main.py trivia_box.py test/ && \
pytest test/