Skip to content

Commit

Permalink
chore: ignore pylint violations
Browse files Browse the repository at this point in the history
and upgrade pylintrc
  • Loading branch information
pomegranited committed Oct 31, 2024
1 parent d371552 commit 7b6138d
Show file tree
Hide file tree
Showing 39 changed files with 335 additions and 313 deletions.
4 changes: 2 additions & 2 deletions openassessment/assessment/api/peer.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ def get_score(submission_uuid, peer_requirements, course_settings):
}


def create_assessment(
def create_assessment( # pylint: disable=too-many-positional-arguments
scorer_submission_uuid,
scorer_id,
options_selected,
Expand Down Expand Up @@ -420,7 +420,7 @@ def create_assessment(


@transaction.atomic
def _complete_assessment(
def _complete_assessment( # pylint: disable=too-many-positional-arguments
rubric_dict,
scorer_id,
peer_submission_uuid,
Expand Down
4 changes: 2 additions & 2 deletions openassessment/assessment/api/self.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def get_score(submission_uuid, self_requirements, course_settings): # pylint: d
}


def create_assessment(
def create_assessment( # pylint: disable=too-many-positional-arguments
submission_uuid,
user_id,
options_selected,
Expand Down Expand Up @@ -179,7 +179,7 @@ def create_assessment(


@transaction.atomic
def _complete_assessment(
def _complete_assessment( # pylint: disable=too-many-positional-arguments
submission_uuid,
user_id,
options_selected,
Expand Down
4 changes: 2 additions & 2 deletions openassessment/assessment/api/staff.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ def get_staff_grading_statistics(course_id, item_id):
return StaffWorkflow.get_workflow_statistics(course_id, item_id)


def create_assessment(
def create_assessment( # pylint: disable=too-many-positional-arguments
submission_uuid,
scorer_id,
options_selected,
Expand Down Expand Up @@ -389,7 +389,7 @@ def create_assessment(


@transaction.atomic
def _complete_assessment(
def _complete_assessment( # pylint: disable=too-many-positional-arguments
submission_uuid,
scorer_id,
options_selected,
Expand Down
2 changes: 1 addition & 1 deletion openassessment/assessment/api/teams.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ def get_staff_grading_statistics(course_id, item_id):
return TeamStaffWorkflow.get_workflow_statistics(course_id, item_id)


def create_assessment(
def create_assessment( # pylint: disable=too-many-positional-arguments
team_submission_uuid,
scorer_id,
options_selected,
Expand Down
1 change: 1 addition & 0 deletions openassessment/assessment/models/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,7 @@ def __str__(self):
return f"Assessment {self.id}"

@classmethod
# pylint: disable=too-many-positional-arguments
def create(cls, rubric, scorer_id, submission_uuid, score_type, feedback=None, scored_at=None):
"""
Create a new assessment.
Expand Down
14 changes: 7 additions & 7 deletions openassessment/conf/locale/en/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: edx-ora2\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-05-09 08:22-0500\n"
"POT-Creation-Date: 2024-10-31 13:50+1030\n"
"PO-Revision-Date: 2014-06-04 15:41-0400\n"
"Last-Translator: Muhammad Ayub khan <[email protected]>\n"
"Language-Team: openedx-translation <[email protected]>\n"
Expand Down Expand Up @@ -158,7 +158,7 @@ msgstr ""
msgid "No description provided."
msgstr ""

#: data.py:1625 templates/legacy/edit/oa_edit_criterion.html:54
#: data.py:1626 templates/legacy/edit/oa_edit_criterion.html:54
#: xblock/studio_mixin.py:57
msgid "None"
msgstr ""
Expand Down Expand Up @@ -2476,26 +2476,26 @@ msgstr ""
msgid "Error getting staff grade ungraded and checked out counts."
msgstr ""

#: xblock/staff_area_mixin.py:702
#: xblock/staff_area_mixin.py:703
msgid "Please enter valid reason to remove the submission."
msgstr ""

#: xblock/staff_area_mixin.py:713
#: xblock/staff_area_mixin.py:714
msgid "Submission not found"
msgstr ""

#: xblock/staff_area_mixin.py:724
#: xblock/staff_area_mixin.py:725
msgid "Submission for team assignment has no associated team submission"
msgstr ""

#: xblock/staff_area_mixin.py:753
#: xblock/staff_area_mixin.py:754
msgid ""
"The learner submission has been removed from peer assessment. The learner "
"receives a grade of zero unless you delete the learner's state for the "
"problem to allow them to resubmit a response."
msgstr ""

#: xblock/staff_area_mixin.py:788
#: xblock/staff_area_mixin.py:789
msgid ""
"The team’s submission has been removed from grading. The team receives a "
"grade of zero unless you delete a team member’s state for the problem to "
Expand Down
Loading

0 comments on commit 7b6138d

Please sign in to comment.