Commit 89b6adad by Sarina Canelake

s/pylint: disable=E1102/pylint: disable=not-callable/

parent aa7cc2b7
...@@ -252,7 +252,7 @@ def perform_delegate_email_batches(entry_id, course_id, task_input, action_name) ...@@ -252,7 +252,7 @@ def perform_delegate_email_batches(entry_id, course_id, task_input, action_name)
return progress return progress
@task(default_retry_delay=settings.BULK_EMAIL_DEFAULT_RETRY_DELAY, max_retries=settings.BULK_EMAIL_MAX_RETRIES) # pylint: disable=E1102 @task(default_retry_delay=settings.BULK_EMAIL_DEFAULT_RETRY_DELAY, max_retries=settings.BULK_EMAIL_MAX_RETRIES) # pylint: disable=not-callable
def send_course_email(entry_id, email_id, to_list, global_email_context, subtask_status_dict): def send_course_email(entry_id, email_id, to_list, global_email_context, subtask_status_dict):
""" """
Sends an email to a list of recipients. Sends an email to a list of recipients.
......
...@@ -219,7 +219,7 @@ class StorageTestBase(object): ...@@ -219,7 +219,7 @@ class StorageTestBase(object):
""" """
# Disable pylint warnings that arise because of the way the child classes call # Disable pylint warnings that arise because of the way the child classes call
# this base class -- pylint's static analysis can't keep up with it. # this base class -- pylint's static analysis can't keep up with it.
# pylint: disable=no-member, E1102 # pylint: disable=no-member, not-callable
factory = None factory = None
scope = None scope = None
......
...@@ -36,7 +36,7 @@ from instructor_task.tasks_helper import ( ...@@ -36,7 +36,7 @@ from instructor_task.tasks_helper import (
from bulk_email.tasks import perform_delegate_email_batches from bulk_email.tasks import perform_delegate_email_batches
@task(base=BaseInstructorTask) # pylint: disable=E1102 @task(base=BaseInstructorTask) # pylint: disable=not-callable
def rescore_problem(entry_id, xmodule_instance_args): def rescore_problem(entry_id, xmodule_instance_args):
"""Rescores a problem in a course, for all students or one specific student. """Rescores a problem in a course, for all students or one specific student.
...@@ -67,7 +67,7 @@ def rescore_problem(entry_id, xmodule_instance_args): ...@@ -67,7 +67,7 @@ def rescore_problem(entry_id, xmodule_instance_args):
return run_main_task(entry_id, visit_fcn, action_name) return run_main_task(entry_id, visit_fcn, action_name)
@task(base=BaseInstructorTask) # pylint: disable=E1102 @task(base=BaseInstructorTask) # pylint: disable=not-callable
def reset_problem_attempts(entry_id, xmodule_instance_args): def reset_problem_attempts(entry_id, xmodule_instance_args):
"""Resets problem attempts to zero for a particular problem for all students in a course. """Resets problem attempts to zero for a particular problem for all students in a course.
...@@ -89,7 +89,7 @@ def reset_problem_attempts(entry_id, xmodule_instance_args): ...@@ -89,7 +89,7 @@ def reset_problem_attempts(entry_id, xmodule_instance_args):
return run_main_task(entry_id, visit_fcn, action_name) return run_main_task(entry_id, visit_fcn, action_name)
@task(base=BaseInstructorTask) # pylint: disable=E1102 @task(base=BaseInstructorTask) # pylint: disable=not-callable
def delete_problem_state(entry_id, xmodule_instance_args): def delete_problem_state(entry_id, xmodule_instance_args):
"""Deletes problem state entirely for all students on a particular problem in a course. """Deletes problem state entirely for all students on a particular problem in a course.
...@@ -111,7 +111,7 @@ def delete_problem_state(entry_id, xmodule_instance_args): ...@@ -111,7 +111,7 @@ def delete_problem_state(entry_id, xmodule_instance_args):
return run_main_task(entry_id, visit_fcn, action_name) return run_main_task(entry_id, visit_fcn, action_name)
@task(base=BaseInstructorTask) # pylint: disable=E1102 @task(base=BaseInstructorTask) # pylint: disable=not-callable
def send_bulk_course_email(entry_id, _xmodule_instance_args): def send_bulk_course_email(entry_id, _xmodule_instance_args):
"""Sends emails to recipients enrolled in a course. """Sends emails to recipients enrolled in a course.
...@@ -132,7 +132,7 @@ def send_bulk_course_email(entry_id, _xmodule_instance_args): ...@@ -132,7 +132,7 @@ def send_bulk_course_email(entry_id, _xmodule_instance_args):
return run_main_task(entry_id, visit_fcn, action_name) return run_main_task(entry_id, visit_fcn, action_name)
@task(base=BaseInstructorTask, routing_key=settings.GRADES_DOWNLOAD_ROUTING_KEY) # pylint: disable=E1102 @task(base=BaseInstructorTask, routing_key=settings.GRADES_DOWNLOAD_ROUTING_KEY) # pylint: disable=not-callable
def calculate_grades_csv(entry_id, xmodule_instance_args): def calculate_grades_csv(entry_id, xmodule_instance_args):
""" """
Grade a course and push the results to an S3 bucket for download. Grade a course and push the results to an S3 bucket for download.
...@@ -143,7 +143,7 @@ def calculate_grades_csv(entry_id, xmodule_instance_args): ...@@ -143,7 +143,7 @@ def calculate_grades_csv(entry_id, xmodule_instance_args):
return run_main_task(entry_id, task_fn, action_name) return run_main_task(entry_id, task_fn, action_name)
@task(base=BaseInstructorTask, routing_key=settings.GRADES_DOWNLOAD_ROUTING_KEY) # pylint: disable=E1102 @task(base=BaseInstructorTask, routing_key=settings.GRADES_DOWNLOAD_ROUTING_KEY) # pylint: disable=not-callable
def calculate_students_features_csv(entry_id, xmodule_instance_args): def calculate_students_features_csv(entry_id, xmodule_instance_args):
""" """
Compute student profile information for a course and upload the Compute student profile information for a course and upload the
......
Markdown is supported
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