-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Requesting JSON Schema for virtualenvs
in poetry-core
#9441
Comments
you have confused the project definition
please close |
So Poetry invented the
Yeah I know that, hence why I think a second file should be made in |
none of this goes in pyproject.toml why are you making a special case of |
Yeah sorry for confusion, to clarify what I am asking for:
So the correct route is:
Does that make sense? |
that has nothing to do with poetry, is not a poetry invention, and should not be schema-d by poetry you have confused poetry configuration with something that has the same name edit: or, the people who are doing that are simply wrong and schema validation is correctly telling them so |
related #2937 please close |
Ah I see, thank you for linking that issue. Closing this out, cheers! |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Issue Kind
Brand new capability
Description
Poetry's configuration has a JSON schema here: https://github.com/python-poetry/poetry-core/blob/1.9.0/src/poetry/core/json/schemas/poetry-schema.json
However, there isn't a JSON schema for Poetry's
virtualenvs.*
: https://python-poetry.org/docs/configuration/#virtualenvscreateSince
virtualenvs.*
has a separate namespace fromtool.poetry
, I think it merits adding a second JSON schema topoetry-core
.Impact
https://github.com/abravalheri/validate-pyproject is a
pyproject.toml
validation tool that centers on schema validation pulling from SchemaStore (e.g. https://github.com/SchemaStore/schemastore/blob/61a602f23b44eca3c34e630bb4554d0a84f77309/src/schemas/json/partial-poetry.json). Without a schema there forvirtualenvs
, Poetry configs withvirtualenvs
will encounter validation failures:Thus, the impact is enabling use of https://github.com/abravalheri/validate-pyproject with advanced Poetry configs.
I just merged SchemaStore/schemastore#3807 to add SchemaStore support for
packages.to
, but this one is a bigger lift I need help with.Workarounds
None
The text was updated successfully, but these errors were encountered: