Coverage for sel_tools/config.py: 100%
10 statements
« prev ^ index » next coverage.py v7.6.12, created at 2025-03-03 19:37 +0000
« prev ^ index » next coverage.py v7.6.12, created at 2025-03-03 19:37 +0000
1"""SEL Tools config."""
3from pathlib import Path
5REPO_DIR = Path(__file__).resolve().parents[2]
7# File structure
8CMAKE_MODULE_PATH = REPO_DIR / "cmake"
9AVATAR_PATH = REPO_DIR / "assets" / "repo-avatar.png"
10HW_BUILD_FOLDER = "hw_build"
12# Git & GitLab Config
13GITLAB_SERVER_URL = "https://gitlab.lrz.de/"
14RUNNER_ID = 3666
15GIT_MAIN_BRANCH = "master"
18def get_branch_from_student_config(student_config: dict) -> str:
19 """Get branch from student config."""
20 return str(student_config.get("branch", GIT_MAIN_BRANCH))