Skip to content

Commit

Permalink
mf
Browse files Browse the repository at this point in the history
  • Loading branch information
mam10eks committed Dec 10, 2024
1 parent a452795 commit 297175c
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 7 deletions.
4 changes: 3 additions & 1 deletion application/setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ include =

[options.package_data]
tira_app.res = *.yml
tira_app.templates = *
tira_app.templates.tira = *
tira_app.templates.tira.git_repo_template = *
tira_app.endpoints = aha

[flake8]
max-line-length = 120
Expand Down
Empty file.
8 changes: 4 additions & 4 deletions application/src/tira_app/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,11 +181,11 @@ def download_repo_template(request, task_id, vm_id):
).open(
"w"
) as ci:
readme.write(render_to_string("tira/git-repo-template/README.md", context=context))
dockerfile.write(render_to_string("tira/git-repo-template/Dockerfile", context=context))
readme.write(render_to_string("tira/git_repo_template/README.md", context=context))
dockerfile.write(render_to_string("tira/git_repo_template/Dockerfile", context=context))
requirements.write("argparse")
script.write(render_to_string("tira/git-repo-template/script.py", context=context))
ci.write(render_to_string("tira/git-repo-template/github-action.yml", context=context))
script.write(render_to_string("tira/git_repo_template/script.py", context=context))
ci.write(render_to_string("tira/git_repo_template/github-action.yml", context=context))

zipped = Path(tmpdirname) / f"{task_id}.zip"
with zipfile.ZipFile(zipped, "w") as zipf:
Expand Down
2 changes: 1 addition & 1 deletion python-client/tira/rest_api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -856,7 +856,7 @@ def register_group(

return self.execute_post_return_json(endpoint, json_payload=body)

def modify_task(self, task_id, to_rename):
def modify_task(self, task_id: str, to_rename: dict[str, str]):
task = self.metadata_for_task(task_id)["context"]["task"]
fields_to_rename = {
"name": "task_name",
Expand Down
2 changes: 1 addition & 1 deletion python-client/tira/tira_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def get_run_execution_or_none(self, approach, dataset, previous_stage_run_id=Non
def docker_registry(self):
return "registry.webis.de"

def modify_task(self, task_id, to_rename):
def modify_task(self, task_id: str, to_rename: dict[str, str]):
# .. todo:: typehint
pass

Expand Down

0 comments on commit 297175c

Please sign in to comment.