Skip to content

Commit

Permalink
fix: ignore pylint too-many-positional-arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
pomegranited committed Oct 3, 2024
1 parent 31d87fe commit 6c4c0ae
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions submissions/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,7 @@ def get_all_course_submission_information(course_id, item_type, read_replica=Tru
)


# pylint: disable=too-many-positional-arguments
def get_top_submissions(course_id, item_id, item_type, number_of_top_scores, use_cache=True, read_replica=True):
"""
Get a number of top scores for an assessment based on a particular student item
Expand Down Expand Up @@ -807,6 +808,7 @@ def reset_score(student_id, course_id, item_id, clear_state=False, emit_signal=T
)


# pylint: disable=too-many-positional-arguments
def set_score(submission_uuid, points_earned, points_possible,
annotation_creator=None, annotation_type=None, annotation_reason=None):
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def create_another_submission(
same_user=False,
same_course=False,
time_delta=None,
):
): # pylint: disable=too-many-positional-arguments
"""
Creates a new Submission, copying certain fields from the 'base'
"""
Expand Down
3 changes: 2 additions & 1 deletion submissions/team_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@


@transaction.atomic
# pylint: disable=too-many-positional-arguments
def create_submission_for_team(
course_id,
item_id,
Expand Down Expand Up @@ -359,7 +360,7 @@ def get_team_ids_by_team_submission_uuid(team_submission_uuids):
}


def set_score(team_submission_uuid, points_earned, points_possible,
def set_score(team_submission_uuid, points_earned, points_possible, # pylint: disable=too-many-positional-arguments
annotation_creator=None, annotation_type=None, annotation_reason=None):
"""Set a score for a particular team submission. This score is calculated
externally to the API. Should call _api.set_score(...) for each child submission
Expand Down
2 changes: 1 addition & 1 deletion submissions/tests/test_team_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def _make_team_submission(
team_id=TEAM_1_ID,
status=None,
create_submissions=False
):
): # pylint: disable=too-many-positional-arguments
""" Convenience method to create test TeamSubmissions with some default values """
model_args = {
'attempt_number': attempt_number,
Expand Down

0 comments on commit 6c4c0ae

Please sign in to comment.