-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create cache #49
Create cache #49
Conversation
input_dir = options.get('input_dir') | ||
output_dir = options.get('output_dir') | ||
|
||
yaml=YAML() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code does not comply to PEP8.
Origin: PEP8Bear, Section: all.autopep8
.
The issue can be fixed by applying the following patch:
--- a/tmp/tmp7z8hoon4/gci/management/commands/cleanse_gci_task_data.py
+++ b/tmp/tmp7z8hoon4/gci/management/commands/cleanse_gci_task_data.py
@@ -25,7 +25,7 @@
input_dir = options.get('input_dir')
output_dir = options.get('output_dir')
- yaml=YAML()
+ yaml = YAML()
with open(os.path.join(input_dir, 'tasks.yaml'), 'r') as f:
tasks = yaml.load(f)
Comment on d236d19, file gci/management/commands/fetch_gci_task_data.py, line 34. The code does not comply to PEP8. Origin: PEP8Bear, Section: The issue can be fixed by applying the following patch: --- a/tmp/tmp7z8hoon4/gci/management/commands/fetch_gci_task_data.py
+++ b/tmp/tmp7z8hoon4/gci/management/commands/fetch_gci_task_data.py
@@ -31,7 +31,7 @@
tasks = OrderedDict(sorted(tasks.items(), key=lambda t: t[0]))
instances = OrderedDict(sorted(instances.items(), key=lambda t: t[0]))
- yaml=YAML()
+ yaml = YAML()
with open(os.path.join(output_dir, 'tasks.yaml'), 'w') as f:
yaml.dump(tasks, f) |
input_dir = options.get('input_dir') | ||
output_dir = options.get('output_dir') | ||
|
||
yaml=YAML() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
E225 missing whitespace around operator
Origin: PycodestyleBear (E225), Section: all.autopep8
.
Comment on d236d19, file gci/management/commands/fetch_gci_task_data.py, line 34. E225 missing whitespace around operator Origin: PycodestyleBear (E225), Section: |
c06915d
to
7501c4f
Compare
Separates the fetch operation from the load operation, allowing the build on forks to use a cached dataset. Related to coala#3
Before the Google Code-in data can be stored in the repository, the data of students who are just starting needs to be removed, the status types need to be simplified to reduce side channels, the unpublished tasks need to be removed, and task mentor list needs to be removed. Related to coala#3
17a2301
to
731aa97
Compare
The cleansed data can be fetched from the production website if the origin remote is set to be production repository, as it is on pull requests for Travis CI. This does not yet allow branch builds on forks, as their origin will not be the production repository. Related to coala#3
ack 9f1d548 |
ack 940cce5 |
ack 731aa97 |
Most of the fix for #3