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

Invocation of Compliance Checker from Python code unintuitive #1079

Open
benjwadams opened this issue May 22, 2024 · 0 comments
Open

Invocation of Compliance Checker from Python code unintuitive #1079

benjwadams opened this issue May 22, 2024 · 0 comments

Comments

@benjwadams
Copy link
Contributor

benjwadams commented May 22, 2024

Invocation of Compliance Checker is too complex due to legacy design issues. You need to run (not all variable definitions included here):

from compliance_checker.suite import CheckSuite
cs = CheckSuite()
cs.load_all_available_checkers()
failures, _ = ComplianceChecker.run_checker(ds_loc=url_path,
                                    checker_names=['gliderdac'], verbose=True,
                                    criteria='lenient', output_format='json',
                                    output_filename=outfile)

just to run a single checker, for example. It'd be better if these checks were loaded by default based upon some sort of factory pattern instead of having this explicit prelude.

@benjwadams benjwadams changed the title Invocation of Compliance Checker unintuitive Invocation of Compliance Checker from Python code unintuitive May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants