abc-classroom.feedback¶
- abcclassroom.feedback.copy_feedback(args)[source]¶
Copies feedback reports to local student repositories, commits the changes, and (optionally) pushes to github. Assumes files are in the directory course_materials/feedback/student/assignment. Copies all files in the source directory. This is the command line implementation.
- Parameters
args (string) – Command line argument for the copy_feedback function. Options include: assignment: Assignment name
github (boolean (default = False)) – If true, or –github used, push to GitHub. Otherwise only commit the change
scrub (boolean (default = False)) – If true (exists), remove hidden tests from the html output before moving it to the student directory
- Returns
Moves feedback html files from the student feedback directory to the
cloned_repos directory. Will commit to git and if
push_to_github
is
True
, it will also rungit push
.
- abcclassroom.feedback.copy_feedback_files(assignment_name, push_to_github=False, scrub=False)[source]¶
Copies feedback reports to local student repositories, commits the changes, and (optionally) pushes to github. Assumes files are in the directory course_materials/feedback/student/assignment. Copies all html files in the source directory.
- Parameters
assignment_name (string) – Name of the assignment for which feedback is being processed.
push_to_github (boolean (default = False)) –
True
if you want to automagically push feedback to GitHub after committing changesscrub (boolean) – If true, and we are moving an html file this will clean the html file before copying it over.
- Returns
Moves feedback html files from the student feedback directory to the
cloned_repos directory. Will commit to git and if
push_to_github
is
True
, it will also rungit push
.