Validate JEP Front Matter against a Schema?
bollwyvl opened this issue · 1 comments
bollwyvl commented
To help reduce the manual review time, and increase the impact of submissions to the JEP process, the validity of JEP front matter could be tested in CI.
A naive implementation, presupposing #54:
import yaml, pathlib, jsonschema
jep_schema = yaml.safe_load_all(
pathlib.Path("jep-xxxx-jep-metadata.md"
).read_text())[0]
for jep in pathlib.Path().rglob("*.md):
jsonschema.validate(
yaml.safe_load_all(jep.read_text())[0],
jep_schema
)
a more elegant approach would probably be a pytest fixture