From 6c4c0aec33ecfa95b496f161c8790357c01fa206 Mon Sep 17 00:00:00 2001 From: Jillian Vogel Date: Thu, 3 Oct 2024 11:53:03 +0930 Subject: [PATCH] fix: ignore pylint too-many-positional-arguments --- submissions/api.py | 2 ++ .../commands/tests/test_analyze_uploaded_file_sizes.py | 2 +- submissions/team_api.py | 3 ++- submissions/tests/test_team_api.py | 2 +- 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/submissions/api.py b/submissions/api.py index 1be2a84f..2c5c0564 100644 --- a/submissions/api.py +++ b/submissions/api.py @@ -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 @@ -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): """ diff --git a/submissions/management/commands/tests/test_analyze_uploaded_file_sizes.py b/submissions/management/commands/tests/test_analyze_uploaded_file_sizes.py index 3701bdce..ea014e3d 100644 --- a/submissions/management/commands/tests/test_analyze_uploaded_file_sizes.py +++ b/submissions/management/commands/tests/test_analyze_uploaded_file_sizes.py @@ -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' """ diff --git a/submissions/team_api.py b/submissions/team_api.py index cbd7a419..392e0d23 100644 --- a/submissions/team_api.py +++ b/submissions/team_api.py @@ -20,6 +20,7 @@ @transaction.atomic +# pylint: disable=too-many-positional-arguments def create_submission_for_team( course_id, item_id, @@ -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 diff --git a/submissions/tests/test_team_api.py b/submissions/tests/test_team_api.py index bc0c39d6..d2362eab 100644 --- a/submissions/tests/test_team_api.py +++ b/submissions/tests/test_team_api.py @@ -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,