-
Notifications
You must be signed in to change notification settings - Fork 17
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
Request: traversing into enum
for failure message
#180
Comments
Hi @jamesbraza, sorry this issue slipped under my radar. |
The JSON schema against which the `tools.ruff.lint` section is validated doesn't appear to exist yet and throws errors. I'm not the only person to have encountered this problem see [here](abravalheri/validate-pyproject#180). For now I'm disabling the check so that `pre-commit` passes. Will reinstate once fixed.
Is it possible to use another json schema validator if they have better error message? Since the performance is not very critical in this case Foe example horejsek/python-fastjsonschema#72 |
My policy for this repo is to use a JSON schema validator that allows 0 dependency (fastjsonschema allows that once you compile). |
In astral-sh/ruff#11880 today with
validate-pyproject==0.18
, I am getting an error that says:The actual error was in an
extend-select
field whose JSON schema type isenum
:The request here is to traverse into the
enum
for a better error message:To show where the exact error lies
The text was updated successfully, but these errors were encountered: