forked from Chombler/Part-1-CLI-Checker
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconstants.py
42 lines (33 loc) · 818 Bytes
/
constants.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import os
## =================== UPDATE THESE VALUES =================== ##
# Env variables
GITHUB_TOKEN = "<Inser your TOKEN here>"
LOG_FILE = "/tmp/checker.log"
LOG_LEVEL = 2
# Repository location
REPO_PATH = "<Insert full path here>"
## =================== DO NOT MODIFY BELOW THIS LINE =================== ##
# constants
ONE_URL = os.path.join(os.path.dirname(os.path.realpath(__file__)), "one-url.txt")
# JSON Fields
FIELDS = [
"URL",
]
SCORE_FIELDS = [
"NetScore",
"RampUp",
"Correctness",
"BusFactor",
"ResponsiveMaintainer",
"License"
]
LATENCY_FIELDS = [ f"{s}_Latency" for s in SCORE_FIELDS ]
ALL_FIELDS = FIELDS + SCORE_FIELDS + LATENCY_FIELDS
# printing Colors
ESC="\033"
RED=ESC+"[91m"
GREEN=ESC+"[92m"
YELLOW=ESC+"[93m"
BLUE=ESC+"[94m"
RESET=ESC+"[0m"
BOLD=ESC+"[1m"