-
Notifications
You must be signed in to change notification settings - Fork 225
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
scripts/2017/mypy-annotations: Add bots annotation
- Loading branch information
1 parent
01c8e40
commit cd1773b
Showing
1 changed file
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,6 +55,29 @@ | |
%s | ||
""" | ||
|
||
tasks_B = [ | ||
] | ||
|
||
tasks_B_uploaded = [ | ||
["converter", "define", "encrypt"], | ||
["incrementor", "link_shortener", "tictactoe"], | ||
["virtual_fs","weather"], | ||
["github_detail", "googlesearch", "help"], | ||
["wikipedia", "xkcd", "yoda"], | ||
["followup", "giphy"], | ||
] | ||
|
||
description_A = """Help add mypy annotations to the Zulip's interactive bots! | ||
This is a great way to practice git, git grep, and efficiently using a powerful editor. | ||
Instructions for the mypy annotation task are at | ||
https://github.com/zulip/zulip-gci/blob/master/tasks/2017/mypy-annotations.md. | ||
For this task, do **Task Type B** for the following set of files: | ||
%s | ||
""" | ||
|
||
for files in tasks_A: | ||
file_list = "\n".join([("* " + file_name) for file_name in files]), | ||
upload_task( | ||
|
@@ -74,6 +97,26 @@ | |
private_metadata = "mypy-annotations-A", | ||
do_upload = args.force) | ||
|
||
for files in tasks_B: | ||
file_list = "\n".join([("* " + file_name) for file_name in files]), | ||
upload_task( | ||
# https://developers.google.com/open-source/gci/resources/downloads/TaskAPISpec.pdf | ||
name = "Add mypy annotations to Zulip's interactive bots", | ||
description = description_A % file_list, | ||
status = 2, # 1: draft, 2: published | ||
max_instances = 1, | ||
mentors = ['[email protected]'], | ||
tags = ['python', 'mypy'], # free text | ||
is_beginner = False, | ||
# 1: Coding, 2: User Interface, 3: Documentation & Training, | ||
# 4: Quality Assurance, 5: Outreach & Research | ||
categories = [1], | ||
time_to_complete_in_days = 4, # must be between 3 and 7 | ||
# Field currently not accessible via API. gci-support says it is coming soon. | ||
external_url = "https://github.com/zulip/zulip-gci/blob/master/tasks/mypy-annotations.md", | ||
private_metadata = "mypy-annotations-B", | ||
do_upload = args.force) | ||
|
||
if not args.force: | ||
print("No tasks uploaded. Add a -f argument to upload tasks to the GCI website.") | ||
|