|
23 | 23 | schema = { |
24 | 24 | "type": "object", |
25 | 25 | "properties": { |
26 | | - "exclude": {"type": "array", "items": {"type": "string"}}, |
27 | 26 | "channels": {"type": "array", "items": {"type": "string"}}, |
28 | 27 | "platforms": {"type": "array", "items": {"type": "string"}}, |
29 | 28 | "policy": { |
|
44 | 43 | }, |
45 | 44 | "additionalProperties": False, |
46 | 45 | }, |
| 46 | + "exclude": {"type": "array", "items": {"type": "string"}}, |
47 | 47 | "ignored_violations": { |
48 | 48 | "type": "array", |
49 | 49 | "items": {"type": "string", "pattern": "^[a-z][-a-z_]*$"}, |
50 | 50 | }, |
51 | 51 | }, |
52 | | - "required": ["packages", "default", "overrides", "ignored_violations"], |
| 52 | + "required": [ |
| 53 | + "packages", |
| 54 | + "default", |
| 55 | + "overrides", |
| 56 | + "exclude", |
| 57 | + "ignored_violations", |
| 58 | + ], |
53 | 59 | }, |
54 | 60 | }, |
55 | | - "required": ["exclude", "channels", "platforms", "policy"], |
| 61 | + "required": ["channels", "platforms", "policy"], |
56 | 62 | } |
57 | 63 |
|
58 | 64 |
|
@@ -161,7 +167,7 @@ def parse_policy(file): |
161 | 167 | return Policy( |
162 | 168 | channels=policy["channels"], |
163 | 169 | platforms=policy["platforms"], |
164 | | - exclude=policy["exclude"], |
| 170 | + exclude=package_policy["exclude"], |
165 | 171 | package_months=package_policy["packages"], |
166 | 172 | default_months=package_policy["default"], |
167 | 173 | ignored_violations=package_policy["ignored_violations"], |
|
0 commit comments