Commit 74265b91 authored by Alexander Froch's avatar Alexander Froch
Browse files

Merge branch mguth-todos with refs/heads/master into refs/merge-requests/450/train

parents 325db5fe 0b387889
Pipeline #3635949 passed with stages
in 15 minutes and 36 seconds
"""Checks repository in master and updates ToDo issue."""
import fnmatch
import os
from sys import stdout
import gitlab
import yaml
from pylint import epylint as lint
......@@ -40,12 +37,23 @@ if __name__ == "__main__":
todo_files, todo_msgs = pylint_fixmes()
issue_description = (
"This issue shows the TODOs specified in the code. "
"It is updated each time the CI in the master branch is running."
"(*Please do not modify the issue description - it will be overwritten*)\n\n"
"It is updated each time the CI in the master branch is running.\n"
"(**Please do not modify the issue description - it will be overwritten**)\n\n"
"## General TODOs\n\n"
python_3_9_todos = "\n\n##TODOs related to new features in Python 3.9\n"
python_3_10_todos = "\n\n##TODOs related to new features in Python 3.10\n"
for files, msgs in zip(todo_files, todo_msgs):
if "python 3.9".casefold() in msgs.casefold():
python_3_9_todos += f"- [ ] {files} - *{msgs}*\n"
if "python 3.10".casefold() in msgs.casefold():
python_3_10_todos += f"- [ ] {files} - *{msgs}*\n"
issue_description += f"- [ ] {files} - *{msgs}*\n"
issue_description += python_3_9_todos
issue_description += python_3_10_todos
# connecting to the CERN gitlab API
gl = gitlab.Gitlab(
......@@ -51,10 +51,6 @@ def GetParser():
help="Epoch which should be evaluated.",
# TODO: implement vr_overlap
# parser.add_argument('--vr_overlap', action='store_true', help='''Option
# toenable vr overlap removall for validation sets.''')
......@@ -587,7 +587,7 @@ class Scaling:
# Add scale dict for given tracks selection to the more general one
scale_dict_trk.update({tracks_name: scale_dict_trk_selection})
# TODO: change in python3.9
# TODO: change in python 3.9
# save scale/shift dictionary to json file
scale_dict = {"jets": scale_dict}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment