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

1"""SEL Tools config.""" 

2 

3from pathlib import Path 

4 

5REPO_DIR = Path(__file__).resolve().parents[2] 

6 

7# File structure 

8CMAKE_MODULE_PATH = REPO_DIR / "cmake" 

9AVATAR_PATH = REPO_DIR / "assets" / "repo-avatar.png" 

10HW_BUILD_FOLDER = "hw_build" 

11 

12# Git & GitLab Config 

13GITLAB_SERVER_URL = "https://gitlab.lrz.de/" 

14RUNNER_ID = 3666 

15GIT_MAIN_BRANCH = "master" 

16 

17 

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))