|
415 | 415 | "title": "Target", |
416 | 416 | "type": "object", |
417 | 417 | "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 | + }, |
418 | 433 | "dependencies": { |
419 | 434 | "title": "Dependencies", |
420 | 435 | "description": "Additional dependencies to install in the environment", |
|
606 | 621 | ], |
607 | 622 | "properties": { |
608 | 623 | "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" |
618 | 625 | }, |
619 | 626 | "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" |
631 | 628 | }, |
632 | 629 | "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" |
644 | 631 | }, |
645 | 632 | "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" |
657 | 634 | }, |
658 | 635 | "only-packages": { |
659 | 636 | "title": "Excluding files outside packages", |
|
849 | 826 | "$ref": "#/definitions/PublishIndex" |
850 | 827 | } |
851 | 828 | } |
| 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 | + } |
852 | 892 | } |
853 | 893 | }, |
854 | 894 | "oneOf": [ |
|
0 commit comments