Skip to content

Instantly share code, notes, and snippets.

@chrimaho
Created April 29, 2022 06:55
Show Gist options
  • Save chrimaho/49a898548146e86e895f3234732cbcf9 to your computer and use it in GitHub Desktop.
Save chrimaho/49a898548146e86e895f3234732cbcf9 to your computer and use it in GitHub Desktop.
# Compile Variables ----
TITLE = config(option='TITLE', default='Update from Git', cast=str)
DESCRIPTION = config \
( option='DESCRIPTION'
, default='Automated update process for pulling from Git repo upon webhook call.'
, cast=str
)
VERSION = config(option='VERSION', default='0.0.1', cast=str)
GIT_URL = config(option='GIT_URL', cast=str)
API_ENDPOINT = config(option="API_ENDPOINT", cast=str, default="/api/webhook")
REPO_DIR = config(option='REPO_DIR', cast=str)
CONTACT_DETAILS = \
{ "name": config(option='CONTACT_NAME', default=None)
, "url": config(option='CONTACT_URL', default=None)
, "email": config(option='CONTACT_EMAIL', default=None)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment