Install TOML .json schemas locally

This commit is contained in:
Xury Greer
2026-08-08 16:24:48 -07:00
parent 991af78ffc
commit 05f19a4873
5 changed files with 9271 additions and 4 deletions

937
.schemas/pyproject.json Normal file
View File

@@ -0,0 +1,937 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://json.schemastore.org/pyproject.json",
"$comment": "there are multiple resources describing `pyproject.toml`. The canonical reference is at https://packaging.python.org/en/latest/specifications/declaring-project-metadata/, which refers to multiple proposals such as PEP 517, PEP 518 and PEP 621",
"x-tombi-toml-version": "v1.0.0",
"x-tombi-table-keys-order": "schema",
"x-tombi-string-formats": ["email", "uri"],
"additionalProperties": false,
"definitions": {
"importNames": {
"type": "array",
"items": {
"type": "string",
"pattern": "^[A-Za-z_][A-Za-z_0-9]*(?:\\.[A-Za-z_][A-Za-z_0-9]*)*(?:\\s*;\\s*private)?$"
},
"x-tombi-array-values-order": "version-sort"
},
"projectAuthor": {
"type": "object",
"additionalProperties": false,
"anyOf": [
{
"required": ["name"],
"properties": {
"name": true
}
},
{
"required": ["email"],
"properties": {
"email": true
}
}
],
"properties": {
"name": {
"type": "string"
},
"email": {
"type": "string",
"format": "email"
}
},
"x-tombi-table-keys-order": "schema"
},
"BuildSystem": {
"type": "object",
"additionalProperties": false,
"required": ["requires"],
"title": "Project build system configuration",
"description": "Declares any Python level dependencies that must be installed in order to run the project’s build system successfully.",
"markdownDescription": "Declares any Python level dependencies that must be installed in order to run the project’s build system successfully.",
"x-intellij-html-description": "<p>Declares any Python level dependencies that must be installed in order to run the project’s build system successfully.</p>",
"x-taplo": {
"links": {
"key": "https://packaging.python.org/en/latest/specifications/pyproject-toml/#declaring-build-system-dependencies-the-build-system-table"
}
},
"x-tombi-table-keys-order": "schema",
"properties": {
"requires": {
"type": "array",
"items": {
"type": "string"
},
"uniqueItems": true,
"title": "Build system dependencies",
"description": "List of strings following the version specifier specification, representing dependencies required to execute the build system.",
"markdownDescription": "List of strings following the [version specifier specification](https://packaging.python.org/en/latest/specifications/version-specifiers/#version-specifiers), representing dependencies required to execute the build system.",
"x-intellij-html-description": "<p>List of strings following the <a href=\"https://packaging.python.org/en/latest/specifications/version-specifiers/#version-specifiers\">version specifier specification</a>, representing dependencies required to execute the build system.</p>",
"x-taplo": {
"links": {
"key": "https://packaging.python.org/en/latest/specifications/pyproject-toml/#declaring-build-system-dependencies-the-build-system-table"
}
},
"x-tombi-array-values-order": "version-sort",
"examples": ["setuptools >= 64.0"]
},
"build-backend": {
"type": "string",
"title": "Name of Python object used to perform the build",
"description": "String is formatted following the same `module:object` syntax as a `setuptools` entry point. It’s also legal to leave out the `:object` part.",
"markdownDescription": "String is formatted following the same `module:object` syntax as a `setuptools` entry point. It’s also legal to leave out the `:object` part.",
"x-intellij-html-description": "<p>String is formatted following the same <code>module:object</code> syntax as a <code>setuptools</code> entry point. It’s also legal to leave out the <code>:object</code> part.</p>",
"x-taplo": {
"links": {
"key": "https://peps.python.org/pep-0517/#source-trees"
}
},
"examples": ["setuptools.build_meta", "my_build_backend:backend"]
},
"backend-path": {
"type": "array",
"items": {
"type": "string"
},
"title": "Build backend directories",
"description": "list of directories to prepend to `sys.path` when loading the build backend, relative to project root",
"markdownDescription": "list of directoriesrepend to `sys.path` when loading the build backend, relative to project root",
"x-intellij-html-description": "<p>list of directories to prepend to <code>sys.path</code> when loading the build backend, relative to project root</p>",
"x-taplo": {
"links": {
"key": "https://peps.python.org/pep-0517/#in-tree-build-backends"
}
},
"x-tombi-table-keys-order": "version-sort"
}
}
},
"DependencyGroup": {
"type": "array",
"title": "Dependency specifiers or include groups",
"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",
"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",
"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>",
"x-tombi-array-values-order": {
"oneOf": ["version-sort", "ascending"]
},
"uniqueItems": true,
"items": {
"oneOf": [
{
"type": "string"
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"include-group": {
"type": "string",
"pattern": "^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9._-]*[a-zA-Z0-9])$"
}
},
"x-tombi-array-values-order-by": "include-group"
}
]
}
}
},
"properties": {
"project": {
"type": "object",
"additionalProperties": false,
"required": ["name"],
"title": "Project core metadata",
"description": "There are three kinds of metadata: _static_, _dynamic_, and _partially dynamic_.\n- Static metadata is listed in the `[project]` table directly and cannot be specified or changed by a tool.\n- Dynamic metadata key names are listed inside the `dynamic` key and represents metadata that a tool will later provide.\n- Partially dynamic metadata is specified in the `[project]` table as a list or table, and also listed in `dynamic`, allowing the build backend to add entries but not modify or remove existing ones.",
"markdownDescription": "There are three kinds of metadata: _static_, _dynamic_, and _partially dynamic_.\n- Static metadata is listed in the `[project]` table directly and cannot be specified or changed by a tool.\n- Dynamic metadata key names are listed inside the `dynamic` key and represents metadata that a tool will later provide.\n- Partially dynamic metadata is specified in the `[project]` table as a list or table, and also listed in `dynamic`, allowing the build backend to add entries but not modify or remove existing ones.",
"x-intellij-html-description": "<p>There are three kinds of metadata: <em>static</em>, <em>dynamic</em>, and <em>partially dynamic</em>.</p><ul><li>Static metadata is listed in the <code>[project]</code> table directly and cannot be specified or changed by a tool.</li><li>Dynamic metadata key names are listed inside the <code>dynamic</code> key and represents metadata that a tool will later provide.</li><li>Partially dynamic metadata is specified in the <code>[project]</code> table as a list or table, and also listed in <code>dynamic</code>, allowing the build backend to add entries but not modify or remove existing ones.</li></ul>",
"x-taplo": {
"links": {
"key": "https://packaging.python.org/en/latest/specifications/pyproject-toml/#declaring-project-metadata-the-project-table",
"initKeys": [
"name",
"version",
"description",
"readme",
"license",
"authors",
"classifiers",
"urls",
"dependencies"
]
}
},
"x-tombi-table-keys-order": "schema",
"properties": {
"name": {
"title": "Project name",
"description": "Valid name consists only of ASCII letters and numbers, period, underscore and hyphen. It must start and end with a letter or number.",
"markdownDescription": "Valid name consists only of ASCII letters and numbers, period, underscore and hyphen. It must start and end with a letter or number.",
"x-intellij-html-description": "<p>Valid name consists only of ASCII letters and numbers, period, underscore and hyphen. It must start and end with a letter or number.</p>",
"x-taplo": {
"links": {
"key": "https://packaging.python.org/en/latest/specifications/pyproject-toml/#name"
}
},
"type": "string",
"pattern": "^([a-zA-Z\\d]|[a-zA-Z\\d][\\w.-]*[a-zA-Z\\d])$"
},
"version": {
"type": "string",
"pattern": "^v?((([0-9]+)!)?([0-9]+(\\.[0-9]+)*)([-_\\.]?(alpha|a|beta|b|preview|pre|c|rc)[-_\\.]?([0-9]+)?)?((-([0-9]+))|([-_\\.]?(post|rev|r)[-_\\.]?([0-9]+)?))?([-_\\.]?(dev)[-_\\.]?([0-9]+)?)?)(\\+([a-zA-Z0-9]+([-_\\.][a-zA-Z0-9]+)*))?$",
"title": "Project version",
"description": "Version of the project, as defined in the [Version specifier specification](https://packaging.python.org/en/latest/specifications/version-specifiers/), and preferably [already normalized](https://packaging.python.org/en/latest/specifications/version-specifiers/#normalization).",
"markdownDescription": "Version of the project, as defined in the [Version specifier specification](https://packaging.python.org/en/latest/specifications/version-specifiers/), and preferably [already normalized](https://packaging.python.org/en/latest/specifications/version-specifiers/#normalization).",
"x-intellij-html-description": "<p>Version of the project, as defined in the <a href=\"https://packaging.python.org/en/latest/specifications/version-specifiers/\">Version specifier specification</a>, and preferably <a href=\"https://packaging.python.org/en/latest/specifications/version-specifiers/#normalization\">already normalized</a>.</p>",
"x-taplo": {
"links": {
"key": "https://packaging.python.org/en/latest/specifications/pyproject-toml/#version"
}
},
"examples": ["42.0.1", "0.3.9rc7.post0.dev5"]
},
"description": {
"type": "string",
"title": "Project summary description",
"description": "Summary description of the project in one line. Tools may not accept multiple lines.",
"markdownDescription": "Summary description of the project in one line. Tools may not accept multiple lines.",
"x-intellij-html-description": "<p>Summary description of the project in one line. Tools may not accept multiple lines.</p>",
"x-taplo": {
"links": {
"key": "https://packaging.python.org/en/latest/specifications/pyproject-toml/#description"
}
}
},
"readme": {
"title": "Project full description",
"description": "Value can be a relative path to text / markdown (`.md` suffix) / reStructuredText (`.rst` suffix) readme file, or a table with either:\n- `file` key containing path of aforementioned readme file, or\n- `text` key containing the full readme text embedded inside `pyproject.toml`.",
"markdownDescription": "Value can be a relative path to text / markdown (`.md` suffix) / reStructuredText (`.rst` suffix) readme file, or a table with either:\n- `file` key containing path of aforementioned readme file, or\n- `text` key containing the full readme text embedded inside `pyproject.toml`.",
"x-intellij-html-description": "<p>Value can be a relative path to text / markdown (<code>.md</code> suffix) / reStructuredText (<code>.rst</code> suffix) readme file, or a table with either:</p><ul><li><code>file</code> key containing path of aforementioned readme file, or</li><li><code>text</code> key containing the full readme text embedded inside <code>pyproject.toml</code>.</li></ul>",
"x-taplo": {
"links": {
"key": "https://packaging.python.org/en/latest/specifications/pyproject-toml/#readme"
}
},
"oneOf": [
{
"title": "README file path",
"type": "string"
},
{
"additionalProperties": false,
"type": "object",
"required": ["file"],
"properties": {
"file": {
"title": "README file path",
"type": "string"
},
"content-type": {
"title": "README content-type",
"description": "RFC 1341 compliant content-type (with optional charset, defaulting to UTF-8)",
"type": "string"
}
},
"x-tombi-table-keys-order": "schema"
},
{
"additionalProperties": false,
"type": "object",
"required": ["text"],
"properties": {
"text": {
"title": "README text",
"type": "string"
},
"content-type": {
"title": "README content-type",
"description": "RFC 1341 compliant content-type (with optional charset, defaulting to UTF-8)",
"type": "string"
}
},
"x-tombi-table-keys-order": "schema"
},
{
"additionalProperties": false,
"type": "object",
"required": ["content-type"],
"properties": {
"content-type": {
"title": "README content-type",
"description": "RFC 1341 compliant content-type (with optional charset, defaulting to UTF-8)",
"type": "string"
}
},
"x-tombi-table-keys-order": "schema"
}
],
"examples": [
"README.md",
{
"file": "README.txt",
"content-type": "text/plain"
},
{
"text": "# Example project\n\nSome readme content",
"content-type": "text/markdown"
}
]
},
"requires-python": {
"type": "string",
"title": "Python version compatibility",
"description": "Specifies the Python version(s) that the distribution is compatible with. Must be in the format specified in [Version specifiers](https://packaging.python.org/en/latest/specifications/version-specifiers/).",
"markdownDescription": "Specifies the Python version(s) that the distribution is compatible with. Must be in the format specified in [Version specifiers](https://packaging.python.org/en/latest/specifications/version-specifiers/).",
"x-intellij-html-description": "<p>Specifies the Python version(s) that the distribution is compatible with. Must be in the format specified in <a href=\"https://packaging.python.org/en/latest/specifications/version-specifiers/\">Version specifiers</a>.</p>",
"x-taplo": {
"links": {
"key": "https://packaging.python.org/en/latest/specifications/pyproject-toml/#requires-python"
}
},
"examples": [">= 3.7"]
},
"license": {
"$comment": "PEP 639: Table format (text/file subkey) is deprecated. SPDX license expression string is recommended.",
"title": "Project license",
"description": "A string containing a valid [SPDX license expression](https://spdx.github.io/spdx-spec/v2.2.2/SPDX-license-expressions/) (recommended), or a table with either:\n- `file` key specifying a relative path to a license file (deprecated per PEP 639), or\n- `text` key containing full license content (deprecated per PEP 639)",
"markdownDescription": "A string containing a valid [SPDX license expression](https://spdx.github.io/spdx-spec/v2.2.2/SPDX-license-expressions/) (recommended), or a table with either:\n- `file` key specifying a relative path to a license file (deprecated per PEP 639), or\n- `text` key containing full license content (deprecated per PEP 639)",
"x-intellij-html-description": "<p>A string containing a valid <a href=\"https://spdx.github.io/spdx-spec/v2.2.2/SPDX-license-expressions/\">SPDX license expression</a> (recommended), or a table with either:</p><ul><li><code>file</code> key specifying a relative path to a license file (deprecated per PEP 639), or</li><li><code>text</code> key containing full license content (deprecated per PEP 639)</li></ul><p>",
"x-taplo": {
"links": {
"key": "https://packaging.python.org/en/latest/specifications/pyproject-toml/#license"
}
},
"oneOf": [
{
"type": "object",
"additionalProperties": false,
"required": ["file"],
"deprecated": true,
"properties": {
"file": {
"title": "License file path",
"description": "Deprecated per [PEP 639](https://peps.python.org/pep-0639/#add-license-file-key). Instead, list license file paths in the top-level `license-files` field and specify the license using an SPDX expression string in the `license` field.",
"type": "string"
}
}
},
{
"type": "object",
"additionalProperties": false,
"required": ["text"],
"deprecated": true,
"properties": {
"text": {
"title": "License text",
"type": "string"
}
}
},
{
"$comment": "SPDX license expression (recommended per PEP 639)",
"type": "string"
}
],
"examples": [
"MIT",
"BSD-2-Clause OR Apache-2.0",
"LicenseRef-Proprietary"
]
},
"license-files": {
"$comment": "Still provisional under PEP 639",
"type": "array",
"items": {
"type": "string"
},
"title": "License files",
"description": "Relative paths or globs to paths of license files. Can be an empty list.",
"markdownDescription": "Relative paths or globs to paths of license files. Can be an empty list.",
"x-intellij-html-description": "<p>Relative paths or globs to paths of license files. Can be an empty list.</p>",
"x-taplo": {
"links": {
"key": "https://peps.python.org/pep-0639/#add-license-files-key"
}
},
"x-tombi-array-values-order": "version-sort"
},
"authors": {
"type": "array",
"items": {
"$ref": "#/definitions/projectAuthor"
},
"title": "Project authors",
"description": "People or organizations considered as 'authors' of the project. Each author is a table with `name` key, `email` key, or both.",
"markdownDescription": "People or organizations considered as 'authors' of the project. Each author is a table with `name` key, `email` key, or both.",
"x-intellij-html-description": "<p>People or organizations considered as 'authors' of the project. Each author is a table with <code>name</code> key, <code>email</code> key, or both.</p>",
"x-taplo": {
"links": {
"key": "https://packaging.python.org/en/latest/specifications/pyproject-toml/#authors-maintainers"
}
}
},
"maintainers": {
"type": "array",
"items": {
"$ref": "#/definitions/projectAuthor"
},
"title": "Project maintainers",
"description": "People or organizations considered as 'maintainers' of the project. Each maintainer is a table with `name` key, `email` key, or both.",
"markdownDescription": "People or organizations considered as 'maintainers' of the project. Each maintainer is a table with `name` key, `email` key, or both.",
"x-intellij-html-description": "<p>People or organizations considered as 'maintainers' of the project. Each maintainer is a table with <code>name</code> key, <code>email</code> key, or both.</p>",
"x-taplo": {
"links": {
"key": "https://packaging.python.org/en/latest/specifications/pyproject-toml/#authors-maintainers"
}
}
},
"keywords": {
"type": "array",
"items": {
"type": "string"
},
"uniqueItems": true,
"title": "Project keywords",
"description": "List of keywords or tags that describe the project. They could be used by search engines to categorize the project.",
"markdownDescription": "List of keywords or tags that describe the project. They could be used by search engines to categorize the project.",
"x-intellij-html-description": "<p>List of keywords or tags that describe the project. They could be used by search engines to categorize the project.</p>",
"x-taplo": {
"links": {
"key": "https://packaging.python.org/en/latest/specifications/pyproject-toml/#keywords"
}
},
"x-tombi-array-values-order": "version-sort"
},
"classifiers": {
"type": "array",
"items": {
"type": "string"
},
"uniqueItems": true,
"title": "Applicable Trove classifiers",
"description": "List of [Trove classifiers](https://pypi.org/classifiers/) that describe the project. PyPI use the classifiers to categorize projects.",
"markdownDescription": "List of [Trove classifiers](https://pypi.org/classifiers/) that describe the project. PyPI use the classifiers to categorize projects.",
"x-intellij-html-description": "<p>List of <a href=\"https://pypi.org/classifiers/\">Trove classifiers</a> that describe the project. PyPI use the classifiers to categorize projects.</p>",
"x-taplo": {
"links": {
"key": "https://packaging.python.org/en/latest/specifications/pyproject-toml/#classifiers"
}
},
"x-tombi-array-values-order": "version-sort"
},
"urls": {
"type": "object",
"additionalProperties": {
"type": "string",
"format": "uri"
},
"title": "Project URLs",
"description": "Table consisting one or multiple `label: URL` pairs. Common indexes like PyPI uses [well-known Project URLs](https://packaging.python.org/en/latest/specifications/well-known-project-urls/#well-known-labels) when presenting project pages.",
"markdownDescription": "Table consisting one or multiple `label: URL` pairs. Common indexes like PyPI uses [well-known Project URLs](https://packaging.python.org/en/latest/specifications/well-known-project-urls/#well-known-labels) when presenting project pages.",
"x-intellij-html-description": "<p>Table consisting one or multiple <code>label: URL</code> pairs. Common indexes like PyPI uses <a href=\"https://packaging.python.org/en/latest/specifications/well-known-project-urls/#well-known-labels\">well-known Project URLs</a> when presenting project pages.</p>",
"x-taplo": {
"links": {
"key": "https://packaging.python.org/en/latest/specifications/pyproject-toml/#urls"
}
},
"x-tombi-additional-key-label": "url_label",
"x-tombi-table-keys-order": "version-sort",
"examples": [
{
"homepage": "https://example.com/example-project"
},
{
"\"home page\"": "https://example.com/example-project",
"documentation": "https://doc.example.com/example-project/stable",
"repository": "https://git.example.com/some/repo.git"
}
]
},
"scripts": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"title": "Console scripts",
"description": "Table of [entry points](https://packaging.python.org/en/latest/specifications/entry-points/) that allows package installers to create a command-line wrapper for. Each key is the name of the script to be created, and each value is the function or object to all, in form of either `importable.module` or `importable.module:object.attr`. Windows platform treats `console_scripts` specially in that they are wrapped in a console executable, so they are attached to a console and can use `sys.stdin`, `sys.stdout` and `sys.stderr` for I/O.",
"markdownDescription": "Table of [entry points](https://packaging.python.org/en/latest/specifications/entry-points/) that allows package installers to create a command-line wrapper for. Each key is the name of the script to be created, and each value is the function or object to all, in form of either `importable.module` or `importable.module:object.attr`. Windows platform treats `console_scripts` specially in that they are wrapped in a console executable, so they are attached to a console and can use `sys.stdin`, `sys.stdout` and `sys.stderr` for I/O.",
"x-intellij-html-description": "<p>Table of <a href=\"https://packaging.python.org/en/latest/specifications/entry-points/\">entry points</a> that allows package installers to create a command-line wrapper for. Each key is the name of the script to be created, and each value is the function or object to all, in form of either <code>importable.module</code> or <code>importable.module:object.attr</code>. Windows platform treats <code>console_scripts</code> specially in that they are wrapped in a console executable, so they are attached to a console and can use <code>sys.stdin</code>, <code>sys.stdout</code> and <code>sys.stderr</code> for I/O.</p>",
"x-taplo": {
"links": {
"key": "https://packaging.python.org/en/latest/specifications/entry-points/#use-for-scripts"
}
},
"x-tombi-additional-key-label": "script_name",
"x-tombi-table-keys-order": "version-sort",
"examples": [
{
"mycmd": "package.module:object.function"
}
]
},
"gui-scripts": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"title": "GUI scripts",
"description": "Table of [entry points](https://packaging.python.org/en/latest/specifications/entry-points/) that allows package installers to create a GUI wrapper for. Each key is the name of the script to be created, and each value is the function or object to all, in form of either `importable.module` or `importable.module:object.attr`. Windows platform treats `gui_scripts` specially in that they are wrapped in a GUI executable, so they can be started without a console, but cannot use standard streams unless application code redirects them.",
"markdownDescription": "Table of [entry points](https://packaging.python.org/en/latest/specifications/entry-points/) that allows package installers to create a GUI wrapper for. Each key is the name of the script to be created, and each value is the function or object to all, in form of either `importable.module` or `importable.module:object.attr`. Windows platform treats `gui_scripts` specially in that they are wrapped in a GUI executable, so they can be started without a console, but cannot use standard streams unless application code redirects them.",
"x-intellij-html-description": "<p>Table of <a href=\"https://packaging.python.org/en/latest/specifications/entry-points/\">entry points</a> that allows package installers to create a GUI wrapper for. Each key is the name of the script to be created, and each value is the function or object to all, in form of either <code>importable.module</code> or <code>importable.module:object.attr</code>. Windows platform treats <code>gui_scripts</code> specially in that they are wrapped in a GUI executable, so they can be started without a console, but cannot use standard streams unless application code redirects them.</p>",
"x-taplo": {
"links": {
"key": "https://packaging.python.org/en/latest/specifications/entry-points/#use-for-scripts"
}
},
"x-tombi-additional-key-label": "script_name",
"x-tombi-table-keys-order": "version-sort",
"examples": [
{
"mycmd": "package.module:object.function"
}
]
},
"entry-points": {
"type": "object",
"additionalProperties": false,
"patternProperties": {
"^\\w+(\\.\\w+)*$": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"x-tombi-additional-key-label": "entry_point_name"
}
},
"propertyNames": {
"not": {
"anyOf": [
{
"const": "console_scripts"
},
{
"const": "gui_scripts"
}
]
}
},
"title": "Other entry-point groups",
"description": "Extra [entry point groups](https://packaging.python.org/en/latest/specifications/entry-points/) that allow applications to load plugins. For example, Pygments (a syntax highlighting tool) can use additional styles from separately installed packages through `[project.entry-points.\"pygments.styles\"]`. Each key is the name of the entry-point group, and each value is a table of entry points.",
"markdownDescription": "Extra [entry point groups](https://packaging.python.org/en/latest/specifications/entry-points/) that allow applications to load plugins. For example, Pygments (a syntax highlighting tool) can use additional styles from separately installed packages through `[project.entry-points.\"pygments.styles\"]`. Each key is the name of the entry-point group, and each value is a table of entry points.",
"x-intellij-html-description": "<p>Extra <a href=\"https://packaging.python.org/en/latest/specifications/entry-points/\">entry point groups</a> that allow applications to load plugins. For example, Pygments (a syntax highlighting tool) can use additional styles from separately installed packages through <code>[project.entry-points.\"pygments.styles\"]</code>. Each key is the name of the entry-point group, and each value is a table of entry points.</p>",
"x-taplo": {
"links": {
"key": "https://packaging.python.org/en/latest/specifications/entry-points/#use-for-plugins"
}
},
"x-tombi-additional-key-label": "entry_point_group_name",
"x-tombi-table-keys-order": "version-sort",
"examples": [
{
"pygments.styles": {
"monokai": "package.module:object.attribute"
}
}
]
},
"dependencies": {
"type": "array",
"items": {
"type": "string"
},
"uniqueItems": true,
"title": "Project mandatory dependency requirements",
"description": "An array of [dependency specifier](https://packaging.python.org/en/latest/specifications/dependency-specifiers/) strings, each representing a mandatory dependent package of the project.",
"markdownDescription": "An array of [dependency specifier](https://packaging.python.org/en/latest/specifications/dependency-specifiers/) strings, each representing a mandatory dependent package of the project.",
"x-intellij-html-description": "<p>An array of <a href=\"https://packaging.python.org/en/latest/specifications/dependency-specifiers/\">dependency specifier</a> strings, each representing a mandatory dependent package of the project.</p>",
"x-taplo": {
"links": {
"key": "https://packaging.python.org/en/latest/specifications/pyproject-toml/#dependencies-optional-dependencies"
}
},
"x-tombi-array-values-order": "version-sort",
"examples": [["attrs", "requests ~= 2.28"]]
},
"optional-dependencies": {
"type": "object",
"patternProperties": {
"^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9._-]*[a-zA-Z0-9])$": {
"type": "array",
"items": {
"type": "string"
}
}
},
"title": "Project extra dependency requirements",
"description": "Each entry is a key/value pair, with the key specifying [extra feature name](https://packaging.python.org/en/latest/specifications/core-metadata/#provides-extra-multiple-use) (such as `socks` in `requests[socks]`), and value is an array of [dependency specifier](https://packaging.python.org/en/latest/specifications/dependency-specifiers/) strings.",
"markdownDescription": "Each entry is a key/value pair, with the key specifying [extra feature name](https://packaging.python.org/en/latest/specifications/core-metadata/#provides-extra-multiple-use) (such as `socks` in `requests[socks]`), and value is an array of [dependency specifier](https://packaging.python.org/en/latest/specifications/dependency-specifiers/) strings.",
"x-intellij-html-description": "<p>Each entry is a key/value pair, with the key specifying <a href=\"https://packaging.python.org/en/latest/specifications/core-metadata/#provides-extra-multiple-use\">extra feature name</a> (such as <code>socks</code> in <code>requests[socks]</code>), and value is an array of <a href=\"https://packaging.python.org/en/latest/specifications/dependency-specifiers/\">dependency specifier</a> strings.</p>",
"x-taplo": {
"links": {
"key": "https://packaging.python.org/en/latest/specifications/pyproject-toml/#dependencies-optional-dependencies"
}
},
"x-tombi-additional-key-label": "package_name",
"x-tombi-table-keys-order": "version-sort",
"examples": [
{
"typing": ["boto3-stubs", "typing-extensions ~= 4.1"]
}
]
},
"import-names": {
"$ref": "#/definitions/importNames",
"description": "An array of strings specifying the import names that the project exclusively provides when installed.",
"markdownDescription": "An array of strings specifying the import names that the project exclusively provides when installed.",
"x-intellij-html-description": "An array of strings specifying the import names that the project exclusively provides when installed.",
"x-taplo": {
"links": {
"key": "https://packaging.python.org/en/latest/specifications/pyproject-toml/#import-names"
}
},
"examples": [["my_package", "_internal ; private"]]
},
"import-namespaces": {
"$ref": "#/definitions/importNames",
"description": "An array of strings specifying the import names that the project provides when installed, but not exclusively.",
"markdownDescription": "An array of strings specifying the import names that the project provides when installed, but not exclusively.",
"x-intellij-html-description": "An array of strings specifying the import names that the project provides when installed, but not exclusively.",
"x-taplo": {
"links": {
"key": "https://packaging.python.org/en/latest/specifications/pyproject-toml/#import-namespaces"
}
},
"examples": [["my_package", "_internal ; private"]]
},
"dynamic": {
"type": "array",
"items": {
"type": "string",
"enum": [
"version",
"description",
"readme",
"requires-python",
"license",
"license-files",
"authors",
"maintainers",
"keywords",
"classifiers",
"urls",
"scripts",
"gui-scripts",
"entry-points",
"dependencies",
"optional-dependencies",
"import-names",
"import-namespaces"
]
},
"uniqueItems": true,
"title": "Dynamic metadata values",
"description": "Specifies which keys are intentionally unspecified under `[project]` table so build backend can/will provide such metadata dynamically. Each key must be listed only once. It is an error to both list a key in `dynamic` and use the key directly in `[project]` unless the key is a list or table with arbitrary entries (PEP 808), in which case the build backend may extend it.\nOne of the most common usage is `version`, which allows build backend to retrieve project version from source code or version control system instead of hardcoding it in `pyproject.toml`.",
"markdownDescription": "Specifies which keys are intentionally unspecified under `[project]` table so build backend can/will provide such metadata dynamically. Each key must be listed only once. It is an error to both list a key in `dynamic` and use the key directly in `[project]` unless the key is a list or table with arbitrary entries (PEP 808), in which case the build backend may extend it.\nOne of the most common usage is `version`, which allows build backend to retrieve project version from source code or version control system instead of hardcoding it in `pyproject.toml`.",
"x-tombi-array-values-order": "version-sort",
"x-intellij-html-description": "<p>Specifies which keys are intentionally unspecified under <code>[project]</code> table so build backend can/will provide such metadata dynamically. Each key must be listed only once. It is an error to both list a key in <code>dynamic</code> and use the key directly in <code>[project]</code> unless the key is a list or table with arbitrary entries (PEP 808), in which case the build backend may extend it.</p><p>One of the most common usage is <code>version</code>, which allows build backend to retrieve project version from source code or version control system instead of hardcoding it in <code>pyproject.toml</code>.</p>",
"x-taplo": {
"links": {
"key": "https://packaging.python.org/en/latest/specifications/pyproject-toml/#dynamic"
}
},
"examples": [["version"]]
}
},
"oneOf": [
{
"required": ["dynamic"],
"properties": {
"dynamic": {
"type": "array",
"contains": {
"const": "version"
}
}
}
},
{
"required": ["version"],
"properties": {
"version": true
}
}
],
"dependencies": {
"version": {
"not": {
"required": ["dynamic"],
"properties": {
"dynamic": {
"type": "array",
"contains": {
"const": "version"
}
}
}
}
},
"description": {
"not": {
"required": ["dynamic"],
"properties": {
"dynamic": {
"type": "array",
"contains": {
"const": "description"
}
}
}
}
},
"readme": {
"not": {
"required": ["dynamic"],
"properties": {
"dynamic": {
"type": "array",
"contains": {
"const": "readme"
}
}
}
}
},
"requires-python": {
"not": {
"required": ["dynamic"],
"properties": {
"dynamic": {
"type": "array",
"contains": {
"const": "requires-python"
}
}
}
}
},
"license": {
"not": {
"required": ["dynamic"],
"properties": {
"dynamic": {
"type": "array",
"contains": {
"const": "license"
}
}
}
}
},
"license-files": {
"properties": {
"license": {
"type": "string"
}
}
}
}
},
"dependency-groups": {
"title": "PEP 735 dependency groups",
"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/).",
"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/).",
"type": "object",
"properties": {
"dev": {
"$ref": "#/definitions/DependencyGroup"
}
},
"patternProperties": {
"^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9._-]*[a-zA-Z0-9])$": {
"$ref": "#/definitions/DependencyGroup"
}
},
"additionalProperties": false,
"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>",
"x-tombi-additional-key-label": "group_name",
"x-tombi-table-keys-order": {
"properties": "version-sort",
"patternProperties": "version-sort"
},
"x-taplo": {
"links": {
"key": "https://peps.python.org/pep-0735/"
}
}
},
"build-system": {
"$ref": "#/definitions/BuildSystem"
},
"tool": {
"type": "object",
"additionalProperties": {
"type": "object",
"additionalProperties": true
},
"title": "Tool-specific configuration",
"description": "Every tool that is used by the project can have users specify configuration data as long as they use a sub-table within `[tool]`. Generally a project can use the subtable `tool.$NAME` if, and only if, they own the entry for `$NAME` in the Cheeseshop/PyPI.",
"markdownDescription": "Every tool that is used by the project can have users specify configuration data as long as they use a sub-table within `[tool]`. Generally a project can use the subtable `tool.$NAME` if, and only if, they own the entry for `$NAME` in the Cheeseshop/PyPI.",
"x-intellij-html-description": "<p>Every tool that is used by the project can have users specify configuration data as long as they use a sub-table within <code>[tool]</code>. Generally a project can use the subtable <code>tool.$NAME</code> if, and only if, they own the entry for <code>$NAME</code> in the Cheeseshop/PyPI.</p>",
"x-taplo": {
"links": {
"key": "https://packaging.python.org/en/latest/specifications/pyproject-toml/#arbitrary-tool-configuration-the-tool-table"
}
},
"x-tombi-additional-key-label": "tool_name",
"x-tombi-table-keys-order": "version-sort",
"properties": {
"black": {
"$ref": "partial-black.json",
"title": "Code Formatter",
"description": "The uncompromising Python code formatter."
},
"cibuildwheel": {
"$ref": "partial-cibuildwheel.json",
"title": "Wheel Builder",
"description": "Build Python wheels for all platforms."
},
"fastapi": {
"$ref": "partial-fastapi.json",
"title": "Web Framework",
"description": "FastAPI web framework configuration."
},
"scheduled": {
"$ref": "partial-scheduled.json",
"title": "Scheduled Jobs",
"description": "Scheduled jobs in Python's `pyproject.toml`.\n\nThis is a specification for declaring recurring scheduled jobs in Python projects, in `pyproject.toml`.\n\nIt defines how jobs are declared and how providers would run them.\n\nIt does not provide a specific implementation for running scheduled jobs, because that is provider specific.\n\nFor example, a file at `app/jobs.py` could define:\n\n```python\ndef clean_files():\n print(\"Running cleanup...\")\n```\n\nYou could define a scheduled job to run that function once per day with:\n\n```toml\n[tool.scheduled.clean-files]\nevery = \"day\"\nentrypoint = \"app.jobs:clean_files\"\n```"
},
"mypy": {
"$ref": "partial-mypy.json",
"title": "Static Type Checker",
"description": "Optional static typing for Python."
},
"ruff": {
"$ref": "ruff.json",
"title": "Linter and Formatter",
"description": "An extremely fast Python linter and formatter, written in Rust."
},
"ty": {
"$ref": "ty.json",
"title": "Type checker",
"description": "An extremely fast Python type checker, written in Rust."
},
"hatch": {
"$ref": "hatch.json",
"title": "Project Manager",
"description": "Modern, extensible Python project management."
},
"maturin": {
"$ref": "maturin.json",
"title": "Rust-Python Package Builder",
"description": "Build and publish crates with pyo3, cffi and uniffi bindings as well as rust binaries as python packages"
},
"scikit-build": {
"$ref": "partial-scikit-build.json",
"title": "Build System Generator",
"description": "Improved build system generator for Python C/C++/Fortran extensions"
},
"setuptools": {
"$ref": "partial-setuptools.json",
"title": "Package Manager",
"description": "Easily download, build, install, upgrade, and uninstall Python packages."
},
"setuptools_scm": {
"$ref": "partial-setuptools-scm.json",
"title": "Version Manager",
"description": "Manage Python package versions using SCM (e.g. Git)."
},
"pixi": {
"$ref": "partial-pixi.json",
"title": "Package Manager and Task Runner",
"description": "A package manager and task runner."
},
"poe": {
"$ref": "partial-poe.json",
"title": "Task Runner",
"description": "A task runner that works well with `pyproject.toml` files."
},
"poetry": {
"$ref": "partial-poetry.json",
"title": "Package Manager",
"description": "Python dependency management and packaging made easy."
},
"pdm": {
"$ref": "partial-pdm.json",
"title": "Package Manager",
"description": "A modern Python package manager with PEP 621 support."
},
"pyright": {
"$ref": "partial-pyright.json",
"title": "Static Type Checker",
"description": "Static type checker for Python."
},
"pytest": {
"$ref": "partial-pytest.json",
"title": "Testing Framework",
"description": "Standardized automated testing of Python packages"
},
"repo-review": {
"$ref": "partial-repo-review.json",
"title": "Repository Reviewer",
"description": "Review a repository for best practices."
},
"taskipy": {
"$ref": "partial-taskipy.json",
"title": "Task Runner",
"description": "The complementary task runner for python."
},
"tombi": {
"$ref": "https://www.schemastore.org/tombi.json",
"title": "TOML Toolkit",
"description": "Tombi is a toolkit for TOML; providing a formatter/linter and language server"
},
"tox": {
"$ref": "tox.json",
"title": "Testing Framework",
"description": "Standardized automated testing of Python packages"
},
"uv": {
"$ref": "uv.json",
"title": "Package Manager",
"description": "An extremely fast Python package installer and resolver, written in Rust."
},
"dfc": {
"$ref": "partial-dfc.json",
"title": "docstring-format-checker",
"description": "A CLI tool to check and validate Python docstring formatting and completeness"
},
"docstring-format-checker": {
"$ref": "partial-dfc.json",
"title": "docstring-format-checker",
"description": "A CLI tool to check and validate Python docstring formatting and completeness"
},
"quikrun": {
"$ref": "https://www.schemastore.org/quikrun.json",
"title": "quikrun",
"description": "A CLI tool to run code files instantly without typing complex commands in terminal."
}
},
"examples": [
{
"tool": {
"isort": {
"profile": "black"
}
}
}
]
}
},
"title": "JSON schema for Python project metadata and configuration",
"type": "object",
"x-taplo-info": {
"authors": ["zevisert (https://github.com/zevisert)"],
"pattern": ["^(.*(/|\\\\)pyproject\\.toml|pyproject\\.toml)$"]
}
}