sourcery
sourcery copied to clipboard
Config file schema's `python_version` does not match the format provided in documentation
Checklist
- [x] I have searched the Sourcery documentation for the issue, and found nothing
- [x] I have read the common issues and fixes listed in the Sourcery troubleshooting page, and found nothing
- [x] I have checked there are no open bugs referencing the same bug or problem
Description
https://docs.sourcery.ai/resources/sourcery_yaml_schema.json
https://docs.sourcery.ai/Coding-Assistant/Reference/Configuration/sourcery-yaml/
I can reproduce this
Hey, @tylerlaprade!
I've just merged a fix for this, and it will be available in the next Sourcery release.
Thanks for opening this issue!
Hi @ruancomelli, thanks for the fix. I'm still getting an error, it's just with a different message now:
Hi @Hellebore , checking in on this. I couldn't find where this schema is defined in the code, so I didn't open a PR myself. I believe I've identified the issue, though. In the schema, python_version is defined with "type": "union". As per this answer, it should actually be an array of the allowable types. Or it's possible that line can just be omitted and the types will be inferred from the actual union, if so, that's even better because it forces the type to match the actual definition.