Skip to content

Commit d94af77

Browse files
authored
feat: update hatch. (SchemaStore#4929)
1 parent 05f9517 commit d94af77

File tree

1 file changed

+82
-42
lines changed

1 file changed

+82
-42
lines changed

src/schemas/json/hatch.json

Lines changed: 82 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,21 @@
415415
"title": "Target",
416416
"type": "object",
417417
"properties": {
418+
"ignore-vcs": {
419+
"$ref": "#/definitions/IgnoreVcs"
420+
},
421+
"include": {
422+
"$ref": "#/definitions/Include"
423+
},
424+
"exclude": {
425+
"$ref": "#/definitions/Exclude"
426+
},
427+
"artifacts": {
428+
"$ref": "#/definitions/Artifacts"
429+
},
430+
"only-include": {
431+
"$ref": "#/definitions/OnlyInclude"
432+
},
418433
"dependencies": {
419434
"title": "Dependencies",
420435
"description": "Additional dependencies to install in the environment",
@@ -606,54 +621,16 @@
606621
],
607622
"properties": {
608623
"ignore-vcs": {
609-
"title": "Ignore VCS in file selection",
610-
"description": "Whether to ignore VCS .*ignore files and include those files by default",
611-
"x-taplo": {
612-
"links": {
613-
"key": "https://hatch.pypa.io/latest/config/build/#vcs"
614-
}
615-
},
616-
"type": "boolean",
617-
"default": false
624+
"$ref": "#/definitions/IgnoreVcs"
618625
},
619626
"include": {
620-
"title": "Include files",
621-
"description": "List of glob patterns to include files",
622-
"x-taplo": {
623-
"links": {
624-
"key": "https://hatch.pypa.io/latest/config/build/#patterns"
625-
}
626-
},
627-
"type": "array",
628-
"items": {
629-
"type": "string"
630-
}
627+
"$ref": "#/definitions/Include"
631628
},
632629
"exclude": {
633-
"title": "Exclude files",
634-
"description": "List of glob patterns to exclude files",
635-
"x-taplo": {
636-
"links": {
637-
"key": "https://hatch.pypa.io/latest/config/build/#patterns"
638-
}
639-
},
640-
"type": "array",
641-
"items": {
642-
"type": "string"
643-
}
630+
"$ref": "#/definitions/Exclude"
644631
},
645632
"artifacts": {
646-
"title": "Artifact files",
647-
"description": "List of glob patterns to include VCS-ignored files",
648-
"x-taplo": {
649-
"links": {
650-
"key": "https://hatch.pypa.io/latest/config/build/#artifacts"
651-
}
652-
},
653-
"type": "array",
654-
"items": {
655-
"type": "string"
656-
}
633+
"$ref": "#/definitions/Artifacts"
657634
},
658635
"only-packages": {
659636
"title": "Excluding files outside packages",
@@ -849,6 +826,69 @@
849826
"$ref": "#/definitions/PublishIndex"
850827
}
851828
}
829+
},
830+
"IgnoreVcs": {
831+
"title": "Ignore VCS in file selection",
832+
"description": "Whether to ignore VCS .*ignore files and include those files by default",
833+
"x-taplo": {
834+
"links": {
835+
"key": "https://hatch.pypa.io/latest/config/build/#vcs"
836+
}
837+
},
838+
"type": "boolean",
839+
"default": false
840+
},
841+
"Include": {
842+
"title": "Include files",
843+
"description": "List of glob patterns to include files",
844+
"x-taplo": {
845+
"links": {
846+
"key": "https://hatch.pypa.io/latest/config/build/#patterns"
847+
}
848+
},
849+
"type": "array",
850+
"items": {
851+
"type": "string"
852+
}
853+
},
854+
"Exclude": {
855+
"title": "Exclude files",
856+
"description": "List of glob patterns to exclude files",
857+
"x-taplo": {
858+
"links": {
859+
"key": "https://hatch.pypa.io/latest/config/build/#patterns"
860+
}
861+
},
862+
"type": "array",
863+
"items": {
864+
"type": "string"
865+
}
866+
},
867+
"Artifacts": {
868+
"title": "Artifact files",
869+
"description": "List of glob patterns to include VCS-ignored files",
870+
"x-taplo": {
871+
"links": {
872+
"key": "https://hatch.pypa.io/latest/config/build/#artifacts"
873+
}
874+
},
875+
"type": "array",
876+
"items": {
877+
"type": "string"
878+
}
879+
},
880+
"OnlyInclude": {
881+
"title": "Only include specific paths",
882+
"description": "List of relative paths to directories or files to include, preventing directory traversal from project root. This option overrides any include patterns.",
883+
"x-taplo": {
884+
"links": {
885+
"key": "https://hatch.pypa.io/latest/config/build/#generic"
886+
}
887+
},
888+
"type": "array",
889+
"items": {
890+
"type": "string"
891+
}
852892
}
853893
},
854894
"oneOf": [

0 commit comments

Comments
 (0)