taplo
taplo copied to clipboard
False positive error when using poetry's git dependency
Im trying to use github repo as a dependecy for my python project, the pyproject.toml looks like this
[tool.poetry]
name = "awesome_name"
version = "0.1.0"
description = "Cool project"
[tool.poetry.dependencies]
httplib = { git = "https://github.com/honestbank/data-science-feature-engineering-library.git", branch = "main" }
sshlib = { git = "[email protected]:honestbank/data-science-research-framework-library.git", branch = "main" }
Judjing by definitions here https://json.schemastore.org/pyproject.json , seems like there is a check whether field git is a valid url. Copy from the link:
"poetry-git-dependency": {
"type": "object",
"required": ["git"],
"additionalProperties": false,
"properties": {
"git": {
"type": "string",
"description": "The url of the git repository.",
"format": "uri"
},
"branch": {
"type": "string",
"description": "The branch to checkout."
},
So in my case httplib have correct url but sshlib do not. Hence taplo throws a false error.
In my understanding this is issue of schema definition and should be updated here https://github.com/SchemaStore/schemastore
Is that true?
Yes this is true.
Closing since it's a schema issue