diff --git a/src/schemas/json/hatch.json b/src/schemas/json/hatch.json index 6ae32ed6786..7c7730c817c 100644 --- a/src/schemas/json/hatch.json +++ b/src/schemas/json/hatch.json @@ -441,6 +441,9 @@ "only-include": { "$ref": "#/definitions/OnlyInclude" }, + "hooks": { + "$ref": "#/definitions/BuildHooks" + }, "dependencies": { "title": "Dependencies", "description": "Additional dependencies to install in the environment", @@ -564,7 +567,8 @@ "type": "object", "additionalProperties": { "$ref": "#/definitions/Target" - } + }, + "x-tombi-additional-key-label": "target_name" }, "Hook": { "title": "Build hook", @@ -618,7 +622,8 @@ "type": "boolean", "default": true } - } + }, + "additionalProperties": true }, "BuildHooks": { "title": "Build Hook Plugins", @@ -631,7 +636,8 @@ "type": "object", "additionalProperties": { "$ref": "#/definitions/Hook" - } + }, + "x-tombi-additional-key-label": "hook_name" }, "Build": { "title": "Build", diff --git a/src/test/hatch/version-vcs.toml b/src/test/hatch/version-vcs.toml index 38f209450a0..26fd4852365 100644 --- a/src/test/hatch/version-vcs.toml +++ b/src/test/hatch/version-vcs.toml @@ -3,3 +3,5 @@ source = "vcs" [build.hooks.vcs] version-file = "_version.py" +[build.targets.wheel.hooks.vcs] +version-file = "_version.py"