Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/python-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:

- name: Upload coverage to Codecov
if: matrix.python-version == '3.12' && matrix.toxenv == 'django42'
uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v6.0.2
uses: codecov/codecov-action@303a32d7a59b442fa8d48b6a1cc6825c09c847a5 # v7.1.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: unittests
Expand Down
1,106 changes: 604 additions & 502 deletions uv.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion xblocks_contrib/annotatable/annotatable.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ def definition_to_xml(self, resource_fs):
# Can't recover here, so just add some info and
# re-raise
lines = self.data.split("\n")
line, offset = err.position # lint-amnesty, pylint: disable=unpacking-non-sequence
line, offset = err.position
context = lines[line - 1][offset - 40 : offset + 40]
msg = f"Unable to create xml for block {self.usage_key}. Context: '{context}'"
raise SerializationError(self.usage_key, msg) from err
2 changes: 1 addition & 1 deletion xblocks_contrib/problem/capa/capa_problem.py
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ def grade_answers(self, answers):
# if answers include File objects, convert them to filenames.
self.student_answers = convert_files_to_filenames(answers)
new_cmap = self.get_grade_from_current_answers(answers)
self.correct_map = new_cmap # pylint: disable=attribute-defined-outside-init
self.correct_map = new_cmap
self.correct_map_history.append(deepcopy(new_cmap))
return self.correct_map

Expand Down
4 changes: 2 additions & 2 deletions xblocks_contrib/problem/capa/correctmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def __iter__(self):
return self.cmap.__iter__()

# See the documentation for 'set_dict' for the use of kwargs
def set( # pylint: disable=too-many-positional-arguments,too-many-arguments
def set( # pylint: disable=too-many-positional-arguments,too-many-arguments,unused-argument
self,
answer_id=None,
correctness=None,
Expand All @@ -53,7 +53,7 @@ def set( # pylint: disable=too-many-positional-arguments,too-many-arguments
hintmode=None,
queuestate=None,
answervariable=None,
**kwargs, # pylint: disable=unused-argument
**kwargs,
):
"""
Set or update the stored evaluation result for a given answer_id.
Expand Down
2 changes: 1 addition & 1 deletion xblocks_contrib/problem/capa_block.py
Original file line number Diff line number Diff line change
Expand Up @@ -2449,7 +2449,7 @@ def definition_to_xml(self, resource_fs):
# Can't recover here, so just add some info and
# re-raise
lines = self.data.split("\n")
line, offset = err.position # pylint: disable=unpacking-non-sequence
line, offset = err.position
msg = (
f"Unable to create xml for block {self.usage_key}. "
f"Context: '{lines[line - 1][offset - 40 : offset + 40]}'"
Expand Down
Loading