summaryrefslogtreecommitdiff
path: root/config.example.py
blob: aad2adba02f64a7943b44cdc50f24054c66dc9ad (plain)
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
"""GENERIC"""
HGROUP_NO = 99
HGROUP_MEMBERS = [
    ("521370910996", "Vladimir Lenin"),
    ("521370910997", "Joseph Stalin"),
    ("521370910998", "Nikita Khrushchev"),
    ("521370910999", "Mikhail Gorbachev"),
]
HGROUP = {f"hgroup-{HGROUP_NO:02}": HGROUP_MEMBERS}
LANGUAGE = "matlab"
# TODO: figure out how to reliably obtain these two
MANDATORY_FILES = [f"ex{n}.m" for n in [2, 4, 5, 6]]
OPTIONAL_FILES = [f"ex{n}.m" for n in [1, 3]]

"""GITEA"""
# trailing slash not allowed
GITEA_API_BASE = "https://focs.ji.sjtu.edu.cn/git/api/v1"
GITEA_ORG = "ENGR151-21"
GITEA_TOKEN = ""

"""JOJ"""
JOJ_COURSE_ID = "vg151_fall_2021_manuel"
JOJ_SESSION_ID = ""

"""CANVAS"""
RUBRIC = {
    "indvFailSubmit": [-0.5, "individual submit missing"],
    "indvUntidy": [-0.25, "individual branch untidy"],
    "groupFailSubmit": [-2.5, "group submit missing"],
    "groupUntidy": [-0.25, "group submit untidy"],
    "jojFailHomework": [-0.5, "JOJ homework not passed"],
    "jojFailExercise": [-0.25, "JOJ exercise not passed"],
    "jojFailCompile": [-1, "JOJ fail to compile"],
    "indvLowCodeQuality": [-0.25, "individual submit low code quality"],
    "groupLowCodeQuality": [-0.25, "group submit low code quality"],
    "noReview": [-1, "not review others' code"],
}