Skip to content
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

GatorGrade Motivator #158

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
11 changes: 10 additions & 1 deletion gatorgrade/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,15 @@ def gatorgrade(
3. the name of the file or environment variable\
4. use 'env md GITHUB_STEP_SUMMARY' to create GitHub job summary in GitHub Action",
),
run_status_bar: bool = typer.Option(
False,
"--run_status_bar",
help="Enable a progress bar for checks running/not running.",
),
no_status_bar: bool = typer.Option(
False, "--no_status_bar", help="Disable the progress bar entirely."
),
run_motivation: bool = typer.Option( False, "--motivation", help="Enable a motivational message" ),
):
"""Run the GatorGrader checks in the specified gatorgrade.yml file."""
# if ctx.subcommand is None then this means
Expand All @@ -55,7 +64,7 @@ def gatorgrade(
# there are valid checks and thus the
# tool should run them with run_checks
if len(checks) > 0:
checks_status = run_checks(checks, report)
checks_status = run_checks(checks, report, run_status_bar, no_status_bar, run_motivation)
# no checks were created and this means
# that, most likely, the file was not
# valid and thus the tool cannot run checks
Expand Down
Loading