Skip to content

Commit ef5aeef

Browse files
committed
invoke error_Depth/github_token only if running validators in cirpy_libs
1 parent 998d2b1 commit ef5aeef

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

adabot/circuitpython_libraries.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -427,22 +427,22 @@ def print_issue_overview(*insights):
427427
]
428428
cmd_line_args = cmd_line_parser.parse_args()
429429

430-
error_depth = cmd_line_args.error_depth
431-
startup_message.append(" - Depth for listing libraries with errors: {}".format(error_depth))
432-
433430
verbosity = cmd_line_args.verbose
434431

435-
github_token = cmd_line_args.gh_token
436-
validator_kwarg_list["github_token"] = github_token
437-
startup_message.append(" - Prompts for the GitHub Token are {}.".format(("enabled" if github_token else "disabled")))
438-
439432
if cmd_line_args.output_file:
440433
output_filename = cmd_line_args.output_file
441434
startup_message.append(" - Report output will be saved to: {}".format(output_filename))
442435

443436
validators = []
444437
validator_names = []
445438
if cmd_line_args.validator:
439+
error_depth = cmd_line_args.error_depth
440+
startup_message.append(" - Depth for listing libraries with errors: {}".format(error_depth))
441+
442+
github_token = cmd_line_args.gh_token
443+
validator_kwarg_list["github_token"] = github_token
444+
startup_message.append(" - Prompts for the GitHub Token are {}.".format(("enabled" if github_token else "disabled")))
445+
446446
if cmd_line_args.validator != "all":
447447
validators = []
448448
for func in cmd_line_args.validator.split(","):

0 commit comments

Comments
 (0)