-
Notifications
You must be signed in to change notification settings - Fork 2
policy: make overrides, exclude and ignored_validations optional #32
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
Conversation
|
Thanks for all your work updating the action by the way! Really cool & I like the three categories! |
|
This works for me on channels:
- conda-forge
platforms:
- noarch
- linux-64
policy:
# all packages in months
packages:
python: 30
numpy: 18
default: 12
# overrides for the policy
overrides: {}
# these packages are completely ignored
exclude: []
# these packages don't fail the CI, but will be printed in the report
ignored_violations: []I do think that being explicit (i.e. requiring the keys) is a good thing, although I guess the schema doesn't encode that intention. |
|
do you have an example / example PR where this failed? |
Agreed. I got a failure with regionmask/regionmask#627 but I just saw that you used |
|
yeah, (FYI the two composite json types are "object" for a mapping, and "array" for a list) Also, looks like the schema does encode the intention I mentioned above. |
|
Yes the errors from jsonschema are difficult to understand (but rewriting them may amount to re-implementing something similar...). |
|
Since the policy schema is pretty simple, I was thinking about extracting information from the error message: if the error message is Then we have the path of the wrong object in |
overrides,excludeandignored_validationswere not optional, and settingdid not work. Is there another way?