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

Fixed so YAML plugin checks are seen as valid by main compliance-checker #6

Merged
merged 2 commits into from
Jul 21, 2020

Conversation

agstephens
Copy link
Member

A couple of lines changed, to make our Base Check class match the signature of the main Check Base class in the compliance checker:

diff --git a/checklib/register/callable_check_base.py b/checklib/register/callable_check_base.py
index 41df325..5a2376f 100644
--- a/checklib/register/callable_check_base.py
+++ b/checklib/register/callable_check_base.py
@@ -1,3 +1,7 @@
+
+from netCDF4 import Dataset
+
+from compliance_checker import MemoizedDataset
 from compliance_checker.base import BaseCheck, Dataset, Result
 from checklib.code.errors import FileError, ParameterError

@@ -13,7 +17,7 @@ class CallableCheckBase(object):
     required_args = []
     message_templates = []
     level = BaseCheck.HIGH
-    supported_ds = [Dataset]
+    supported_ds = {Dataset, MemoizedDataset}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants