-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Code update: refactor the way the report files are defined in the command line and passed into the configure_reports function #147
base: main
Are you sure you want to change the base?
Conversation
…tion's parameters
…ms in report_params.py
…new configure_report input in test_output.py
Hello @rebekahrudd can you please give us several examples of the way in which you have changed the code and, in particular, can you clarify whether or not these refactorings are going to change the output and/or behavior of GatorGrade? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rebekahrudd! I just tested this out locally and my --help
function has the intented output:
(venv) hemanialaparthi@Hemanis-MacBook-Air executable-examination-example-solution % gatorgrade --help
Usage: gatorgrade [OPTIONS] COMMAND [ARGS]...
🐊 Run the GatorGrader checks in the specified gatorgrade.yml file.
╭─ Options ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ --config -c PATH Name of the yml file. [default: gatorgrade.yml] │
│ --report-location [file|env] [default: None] │
│ --report-storing-type [json|md] [default: None] │
│ --storing-location-name [github] [default: None] │
│ --help Show this message and exit. │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
And, I can see my GitHub Actions reporting the insights:
NOTE: for future people testing this PR, the build.yml
file is in the .github
and also if you don't see your GitHub Actions, make sure you check if you have them enable for your repo.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, descriptive commit messages
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code update: refactor the way the report files are defined in the command line and passed into the configure_reports function
Description
This latest change to
gatorgrade
is to refactor the code that configures the report. This update changes the command line interface and the commands that are passed in. There is no longer a `--report`` command rather there are three that address different aspects.The purpose of this is to have better documentation for users to understand the acceptable options for each part of generating a report.
Linked Issues
https://github.com/GatorEducator/gatorgrade/issues/145
closes: #145
Type of Change
Contributors
Testing this PR
Setup:
gatorgrade
to test thisgatorgrade
update.pyproject.toml
file of the repo you chose add the commandpipx install git+https://github.com/rebekahrudd/gatorgrade
in place of the commandpipx install gatorgrade
How to check if this PR worked:
gatorgrade
If you see the report and have confirmed that it was my version of Github that ran then this update is working and this PR can get approved!