Coverage for src/ensae_teaching_cs/automation/teaching_modules.py: 100%
6 statements
« prev ^ index » next coverage.py v7.1.0, created at 2023-04-28 06:23 +0200
« prev ^ index » next coverage.py v7.1.0, created at 2023-04-28 06:23 +0200
1# -*- coding: utf-8 -*-
2"""
3@file
4@brief List of modules to maintain for the teachings.
5"""
8def get_teaching_modules(branch=True):
9 """
10 List of teachings modules to maintain (CI + documentation).
12 :param branch: the default branch is usually master but could
13 be main. If False, the branch name is not returned,
14 otherwise the module name is `module:branch`.
16 .. runpython::
17 :showcode:
19 from ensae_teaching_cs.automation import get_teaching_modules
20 print('\\n'.join(sorted(get_teaching_modules())))
21 """
22 mods = ['deeponnxcustom:main', 'onnxcustom',
23 "pymlbenchmark", "ensae_teaching_dl",
24 "lecture_citation", "pyquickhelper", "jyquickhelper",
25 "python3_module_template", "pymmails", "pymyinstall",
26 "pyensae", "pyrsslocal", "ensae_projects", "ensae_teaching_cs",
27 "code_beatrix", "actuariat_python", "mlstatpy", "jupytalk", "teachpyx",
28 "tkinterquickhelper", "cpyquickhelper", "pandas_streaming",
29 "mlinsights", "pyenbc", "mlprodict", "mloptonnx",
30 "papierstat", "sparkouille", "manydataapi",
31 "wrapclib", "myblog", "_check_python_install", "onnxortext"]
32 if not branch:
33 mods = [m.split(':', maxsplit=1)[0] for m in mods]
34 return mods