|
12 | 12 | "items": { |
13 | 13 | "type": "string", |
14 | 14 | "pattern": "^[A-Za-z_][A-Za-z_0-9]*(?:\\.[A-Za-z_][A-Za-z_0-9]*)*(?:\\s*;\\s*private)?$" |
15 | | - } |
| 15 | + }, |
| 16 | + "x-tombi-array-values-order": "version-sort" |
16 | 17 | }, |
17 | 18 | "projectAuthor": { |
18 | 19 | "type": "object", |
|
105 | 106 | "x-tombi-table-keys-order": "version-sort" |
106 | 107 | } |
107 | 108 | } |
| 109 | + }, |
| 110 | + "DependencyGroup": { |
| 111 | + "type": "array", |
| 112 | + "title": "Dependency specifiers or include groups", |
| 113 | + "description": "Each list item should be either:\n- [dependency specifiers](https://packaging.python.org/en/latest/specifications/dependency-specifiers/), or\n- table with a single key `include-group` which specifies another group name to include into this one", |
| 114 | + "markdownDescription": "Each list item should be either:\n- [dependency specifiers](https://packaging.python.org/en/latest/specifications/dependency-specifiers/), or\n- table with a single key `include-group` which specifies another group name to include into this one", |
| 115 | + "x-intellij-html-description": "<p>Each list item should be either:</p><ul><li><a href=\"https://packaging.python.org/en/latest/specifications/dependency-specifiers/\">dependency specifiers</a>, or</li><li>table with a single key <code>include-group</code> which specifies another group name to include into this one</li></ul>", |
| 116 | + "x-tombi-array-values-order": { |
| 117 | + "oneOf": ["version-sort", "ascending"] |
| 118 | + }, |
| 119 | + "uniqueItems": true, |
| 120 | + "items": { |
| 121 | + "oneOf": [ |
| 122 | + { |
| 123 | + "type": "string" |
| 124 | + }, |
| 125 | + { |
| 126 | + "type": "object", |
| 127 | + "additionalProperties": false, |
| 128 | + "properties": { |
| 129 | + "include-group": { |
| 130 | + "type": "string", |
| 131 | + "pattern": "^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9._-]*[a-zA-Z0-9])$" |
| 132 | + } |
| 133 | + }, |
| 134 | + "x-tombi-array-values-order-by": "include-group" |
| 135 | + } |
| 136 | + ] |
| 137 | + } |
108 | 138 | } |
109 | 139 | }, |
110 | 140 | "properties": { |
|
408 | 438 | "key": "https://packaging.python.org/en/latest/specifications/pyproject-toml/#urls" |
409 | 439 | } |
410 | 440 | }, |
| 441 | + "x-tombi-additional-key-label": "url_label", |
411 | 442 | "x-tombi-table-keys-order": "version-sort", |
412 | 443 | "examples": [ |
413 | 444 | { |
|
434 | 465 | "key": "https://packaging.python.org/en/latest/specifications/entry-points/#use-for-scripts" |
435 | 466 | } |
436 | 467 | }, |
| 468 | + "x-tombi-additional-key-label": "script_name", |
437 | 469 | "x-tombi-table-keys-order": "version-sort", |
438 | 470 | "examples": [ |
439 | 471 | { |
|
455 | 487 | "key": "https://packaging.python.org/en/latest/specifications/entry-points/#use-for-scripts" |
456 | 488 | } |
457 | 489 | }, |
| 490 | + "x-tombi-additional-key-label": "script_name", |
458 | 491 | "x-tombi-table-keys-order": "version-sort", |
459 | 492 | "examples": [ |
460 | 493 | { |
|
470 | 503 | "type": "object", |
471 | 504 | "additionalProperties": { |
472 | 505 | "type": "string" |
473 | | - } |
| 506 | + }, |
| 507 | + "x-tombi-additional-key-label": "entry_point_name" |
474 | 508 | } |
475 | 509 | }, |
476 | 510 | "propertyNames": { |
|
494 | 528 | "key": "https://packaging.python.org/en/latest/specifications/entry-points/#use-for-plugins" |
495 | 529 | } |
496 | 530 | }, |
| 531 | + "x-tombi-additional-key-label": "entry_point_group_name", |
497 | 532 | "x-tombi-table-keys-order": "version-sort", |
498 | 533 | "examples": [ |
499 | 534 | { |
|
523 | 558 | }, |
524 | 559 | "optional-dependencies": { |
525 | 560 | "type": "object", |
526 | | - "x-tombi-table-keys-order": "version-sort", |
527 | 561 | "patternProperties": { |
528 | 562 | "^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9._-]*[a-zA-Z0-9])$": { |
529 | 563 | "type": "array", |
|
541 | 575 | "key": "https://packaging.python.org/en/latest/specifications/pyproject-toml/#dependencies-optional-dependencies" |
542 | 576 | } |
543 | 577 | }, |
| 578 | + "x-tombi-additional-key-label": "package_name", |
| 579 | + "x-tombi-table-keys-order": "version-sort", |
544 | 580 | "examples": [ |
545 | 581 | { |
546 | 582 | "typing": ["boto3-stubs", "typing-extensions ~= 4.1"] |
|
881 | 917 | "title": "PEP 735 dependency groups", |
882 | 918 | "description": "Named groups of dependencies, similar to `requirements.txt` files, which launchers, IDEs, and other tools can find and identify by name. Each item in `[dependency-groups]` is defined as mapping of group name to list of [dependency specifiers](https://packaging.python.org/en/latest/specifications/dependency-specifiers/).", |
883 | 919 | "markdownDescription": "Named groups of dependencies, similar to `requirements.txt` files, which launchers, IDEs, and other tools can find and identify by name. Each item in `[dependency-groups]` is defined as mapping of group name to list of [dependency specifiers](https://packaging.python.org/en/latest/specifications/dependency-specifiers/).", |
884 | | - "x-intellij-html-description": "<p>Named groups of dependencies, similar to <code>requirements.txt</code> files, which launchers, IDEs, and other tools can find and identify by name. Each item in <code>[dependency-groups]</code> is defined as mapping of group name to list of <a href=\"https://packaging.python.org/en/latest/specifications/dependency-specifiers/\">dependency specifiers</a>.</p>", |
885 | | - "x-tombi-table-keys-order": "version-sort", |
886 | | - "x-taplo": { |
887 | | - "links": { |
888 | | - "key": "https://peps.python.org/pep-0735/" |
| 920 | + "type": "object", |
| 921 | + "properties": { |
| 922 | + "dev": { |
| 923 | + "$ref": "#/definitions/DependencyGroup" |
889 | 924 | } |
890 | 925 | }, |
891 | | - "type": "object", |
892 | | - "additionalProperties": false, |
893 | 926 | "patternProperties": { |
894 | 927 | "^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9._-]*[a-zA-Z0-9])$": { |
895 | | - "type": "array", |
896 | | - "title": "Dependency specifiers or include groups", |
897 | | - "description": "Each list item should be either:\n- [dependency specifiers](https://packaging.python.org/en/latest/specifications/dependency-specifiers/), or\n- table with a single key `include-group` which specifies another group name to include into this one", |
898 | | - "markdownDescription": "Each list item should be either:\n- [dependency specifiers](https://packaging.python.org/en/latest/specifications/dependency-specifiers/), or\n- table with a single key `include-group` which specifies another group name to include into this one", |
899 | | - "x-intellij-html-description": "<p>Each list item should be either:</p><ul><li><a href=\"https://packaging.python.org/en/latest/specifications/dependency-specifiers/\">dependency specifiers</a>, or</li><li>table with a single key <code>include-group</code> which specifies another group name to include into this one</li></ul>", |
900 | | - "x-tombi-array-values-order": "version-sort", |
901 | | - "uniqueItems": true, |
902 | | - "items": { |
903 | | - "oneOf": [ |
904 | | - { |
905 | | - "type": "string" |
906 | | - }, |
907 | | - { |
908 | | - "type": "object", |
909 | | - "additionalProperties": false, |
910 | | - "properties": { |
911 | | - "include-group": { |
912 | | - "type": "string", |
913 | | - "pattern": "^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9._-]*[a-zA-Z0-9])$" |
914 | | - } |
915 | | - } |
916 | | - } |
917 | | - ] |
918 | | - } |
| 928 | + "$ref": "#/definitions/DependencyGroup" |
| 929 | + } |
| 930 | + }, |
| 931 | + "additionalProperties": false, |
| 932 | + "x-intellij-html-description": "<p>Named groups of dependencies, similar to <code>requirements.txt</code> files, which launchers, IDEs, and other tools can find and identify by name. Each item in <code>[dependency-groups]</code> is defined as mapping of group name to list of <a href=\"https://packaging.python.org/en/latest/specifications/dependency-specifiers/\">dependency specifiers</a>.</p>", |
| 933 | + "x-tombi-additional-key-label": "group_name", |
| 934 | + "x-tombi-table-keys-order": { |
| 935 | + "properties": "version-sort", |
| 936 | + "patternProperties": "version-sort" |
| 937 | + }, |
| 938 | + "x-taplo": { |
| 939 | + "links": { |
| 940 | + "key": "https://peps.python.org/pep-0735/" |
919 | 941 | } |
920 | 942 | } |
921 | 943 | }, |
|
937 | 959 | "key": "https://packaging.python.org/en/latest/specifications/pyproject-toml/#arbitrary-tool-configuration-the-tool-table" |
938 | 960 | } |
939 | 961 | }, |
| 962 | + "x-tombi-additional-key-label": "tool_name", |
940 | 963 | "x-tombi-table-keys-order": "version-sort", |
941 | 964 | "properties": { |
942 | 965 | "black": { |
|
1027 | 1050 | "tombi": { |
1028 | 1051 | "$ref": "https://json.schemastore.org/tombi.json", |
1029 | 1052 | "title": "TOML Toolkit", |
1030 | | - "description": "Tombi (鳶) is a toolkit for TOML; providing a formatter/linter and language server" |
| 1053 | + "description": "Tombi is a toolkit for TOML; providing a formatter/linter and language server" |
1031 | 1054 | }, |
1032 | 1055 | "tox": { |
1033 | 1056 | "$ref": "https://json.schemastore.org/partial-tox.json", |
|
0 commit comments