diff --git a/src/schemas/json/partial-pdm.json b/src/schemas/json/partial-pdm.json index c740d8fea14..967eced998e 100644 --- a/src/schemas/json/partial-pdm.json +++ b/src/schemas/json/partial-pdm.json @@ -55,7 +55,16 @@ } ] }, - + "script-help": { + "type": "string", + "description": "Help text for the script", + "examples": ["Run the tests"], + "x-taplo": { + "links": { + "key": "https://pdm-project.org/latest/usage/scripts/#show-the-list-of-scripts" + } + } + }, "pdm-script": { "anyOf": [ { @@ -78,6 +87,9 @@ }, "env_file": { "$ref": "#/definitions/env-file" + }, + "help": { + "$ref": "#/definitions/script-help" } } }, @@ -105,6 +117,9 @@ }, "env_file": { "$ref": "#/definitions/env-file" + }, + "help": { + "$ref": "#/definitions/script-help" } } }, @@ -123,6 +138,9 @@ }, "env_file": { "$ref": "#/definitions/env-file" + }, + "help": { + "$ref": "#/definitions/script-help" } } }, @@ -146,6 +164,9 @@ }, "env_file": { "$ref": "#/definitions/env-file" + }, + "help": { + "$ref": "#/definitions/script-help" } } } @@ -422,6 +443,17 @@ } } }, + "plugins": { + "type": "array", + "description": "List of PDM plugins required for this project", + "items": { "type": "string" }, + "examples": [["pdm-packer"]], + "x-taplo": { + "links": { + "key": "https://pdm-project.org/latest/dev/write/#specify-the-plugins-in-project" + } + } + }, "source": { "type": "array", "description": "Sources used for package resolution", diff --git a/src/test/pyproject/pdm_tool.toml b/src/test/pyproject/pdm_tool.toml index 9fa6c36058c..907ed87d1e1 100644 --- a/src/test/pyproject/pdm_tool.toml +++ b/src/test/pyproject/pdm_tool.toml @@ -1,6 +1,7 @@ [tool.pdm] +plugins = ["sync-pre-commit-lock"] package-type = "application" # can be library or application allow_prereleases = true # https://pdm-project.org/latest/usage/config/#allow-prereleases-in-resolution-result ignore_package_warnings = [ @@ -44,6 +45,7 @@ _.env_file = ".env" # https://pdm-project.org start.cmd = "flask run -p 54321" start.env = { FOO = "bar", FLASK_ENV = "development" } start.env_file = ".env" +start.help = "Start the server" start1 = { cmd = "flask run -p 54321", env_file = { override = ".env" } }