-
Notifications
You must be signed in to change notification settings - Fork 4
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
VPP001: Error: tool.ruff.lint
cannot be validated by any definition
#232
Comments
Are one of those fairly new? We might need ti bum validate-pyproject-schema-store. Or the SchemaStore might need a new update (which the stuff team does pretty regularly). |
None of these settings is very recent, the most recent is In the error message, the
Is that expected? |
Hard to check on my phone, is it in here: https://json.schemastore.org/ruff.json |
It's mad about lint.select = ["E", "F", "B", "U", "YTT", "C", "DTZ", "PYI", "PT", "I", "FURB", "RUF"] I think because it has preview only selections in it. |
The issue is "U" is not a valid code. "UP" is the correct code. See pypa/setuptools-scm#1064. |
What got me confused is that there were 2 error messages for the same issue;
The error message could be more helpful (perhaps show the actual invalid code). |
For validation, that's handled by validate-pyproject, maybe the error message can be improved there (it's from fastjsonshema). For our end (sp-repo-review, that is), |
Because The same root cause should not result into different error messages, especially without enough details to clearly identify the root cause (at least a line number). |
See:
https://learn.scientific-python.org/development/guides/repo-review/?repo=pypa%2Fsetuptools_scm&branch=main
The error message is unclear, I think the failure originates here:
The text was updated successfully, but these errors were encountered: