From 4ece5067d47b4ab4da3f5b857fd79001f0cf188f Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 8 Aug 2024 17:03:24 -0400 Subject: [PATCH] [create-pull-request] automated change (#58) Co-authored-by: henryiii <4616906+henryiii@users.noreply.github.com> --- pyproject.toml | 2 +- .../resources/pyright.schema.json | 12 ++ .../resources/ruff.schema.json | 42 +++++- .../resources/scikit-build.schema.json | 123 ++++++++++++++++-- 4 files changed, 164 insertions(+), 15 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 4bcd534..2dbbe46 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,7 +5,7 @@ build-backend = "hatchling.build" [project] name = "validate-pyproject-schema-store" -version = "2024.07.29" +version = "2024.08.08" authors = [ { name = "Henry Schreiner", email = "henryfs@princeton.edu" }, ] diff --git a/src/validate_pyproject_schema_store/resources/pyright.schema.json b/src/validate_pyproject_schema_store/resources/pyright.schema.json index 4a08d1e..6cb0268 100644 --- a/src/validate_pyproject_schema_store/resources/pyright.schema.json +++ b/src/validate_pyproject_schema_store/resources/pyright.schema.json @@ -116,6 +116,12 @@ "x-intellij-html-description": "PEP 484 defines support for # type: ignore comments. This switch enables or disables support for these comments. This does not affect # pyright: ignore comments.", "default": true }, + "enableReachabilityAnalysis": { + "type": "boolean", + "title": "Identify code determined to be unreachable through type analysis", + "description": "If enabled, code that is determined to be unreachable by type analysis is reported using a tagged hint. This setting does not affect code that is determined to be unreachable regardless of type analysis; such code is always reported as unreachable. This setting also has no effect when when using the command-line version of pyright because it never emits tagged hints for unreachable code.", + "default": true + }, "deprecateTypingAliases": { "type": "boolean", "title": "Treat typing-specific aliases to standard types as deprecated", @@ -809,6 +815,9 @@ "enableTypeIgnoreComments": { "$ref": "#/definitions/enableTypeIgnoreComments" }, + "enableReachabilityAnalysis": { + "$ref": "#/definitions/enableReachabilityAnalysis" + }, "deprecateTypingAliases": { "$ref": "#/definitions/deprecateTypingAliases" }, @@ -1133,6 +1142,9 @@ "enableTypeIgnoreComments": { "$ref": "#/definitions/enableTypeIgnoreComments" }, + "enableReachabilityAnalysis": { + "$ref": "#/definitions/enableReachabilityAnalysis" + }, "deprecateTypingAliases": { "$ref": "#/definitions/deprecateTypingAliases" }, diff --git a/src/validate_pyproject_schema_store/resources/ruff.schema.json b/src/validate_pyproject_schema_store/resources/ruff.schema.json index bd7a6ec..5a93e43 100644 --- a/src/validate_pyproject_schema_store/resources/ruff.schema.json +++ b/src/validate_pyproject_schema_store/resources/ruff.schema.json @@ -445,7 +445,7 @@ ] }, "include": { - "description": "A list of file patterns to include when linting.\n\nInclusion are based on globs, and should be single-path patterns, like `*.pyw`, to include any file with the `.pyw` extension. `pyproject.toml` is included here not for configuration but because we lint whether e.g. the `[project]` matches the schema.\n\nFor more information on the glob syntax, refer to the [`globset` documentation](https://docs.rs/globset/latest/globset/#syntax).", + "description": "A list of file patterns to include when linting.\n\nInclusion are based on globs, and should be single-path patterns, like `*.pyw`, to include any file with the `.pyw` extension. `pyproject.toml` is included here not for configuration but because we lint whether e.g. the `[project]` matches the schema.\n\nIf [preview](https://docs.astral.sh/ruff/preview/) is enabled, the default includes notebook files (`.ipynb` extension). You can exclude them by adding `*.ipynb` to [`extend-exclude`](#extend-exclude).\n\nFor more information on the glob syntax, refer to the [`globset` documentation](https://docs.rs/globset/latest/globset/#syntax).", "type": [ "array", "null" @@ -532,7 +532,7 @@ } }, "output-format": { - "description": "The style in which violation messages should be formatted: `\"full\"` (shows source), `\"concise\"` (default), `\"grouped\"` (group messages by file), `\"json\"` (machine-readable), `\"junit\"` (machine-readable XML), `\"github\"` (GitHub Actions annotations), `\"gitlab\"` (GitLab CI code quality report), `\"pylint\"` (Pylint text format) or `\"azure\"` (Azure Pipeline logging commands).", + "description": "The style in which violation messages should be formatted: `\"full\"` (default) (shows source), `\"concise\"`, `\"grouped\"` (group messages by file), `\"json\"` (machine-readable), `\"junit\"` (machine-readable XML), `\"github\"` (GitHub Actions annotations), `\"gitlab\"` (GitLab CI code quality report), `\"pylint\"` (Pylint text format) or `\"azure\"` (Azure Pipeline logging commands).", "anyOf": [ { "$ref": "#/definitions/OutputFormat" @@ -934,6 +934,16 @@ "Flake8BuiltinsOptions": { "type": "object", "properties": { + "builtins-allowed-modules": { + "description": "List of builtin module names to allow.", + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + } + }, "builtins-ignorelist": { "description": "Ignore list of builtins.", "type": [ @@ -1034,7 +1044,7 @@ "type": "object", "properties": { "allow-multiline": { - "description": "Whether to allow implicit string concatenations for multiline strings. By default, implicit concatenations of multiline strings are allowed (but continuation lines, delimited with a backslash, are prohibited).\n\nNote that setting `allow-multiline = false` should typically be coupled with disabling `explicit-string-concatenation` (`ISC003`). Otherwise, both explicit and implicit multiline string concatenations will be seen as violations.", + "description": "Whether to allow implicit string concatenations for multiline strings. By default, implicit concatenations of multiline strings are allowed (but continuation lines, delimited with a backslash, are prohibited).\n\nSetting `allow-multiline = false` will automatically disable the `explicit-string-concatenation` (`ISC003`) rule. Otherwise, both implicit and explicit multiline string concatenations would be seen as violations, making it impossible to write a linter-compliant multiline string.", "type": [ "boolean", "null" @@ -1677,7 +1687,7 @@ "null" ], "items": { - "type": "string" + "$ref": "#/definitions/NameImports" } }, "section-order": { @@ -2294,6 +2304,9 @@ }, "additionalProperties": false }, + "NameImports": { + "type": "string" + }, "OutputFormat": { "oneOf": [ { @@ -2667,6 +2680,9 @@ "A001", "A002", "A003", + "A004", + "A005", + "A006", "AIR", "AIR0", "AIR00", @@ -2875,6 +2891,19 @@ "DJ01", "DJ012", "DJ013", + "DOC", + "DOC2", + "DOC20", + "DOC201", + "DOC202", + "DOC4", + "DOC40", + "DOC402", + "DOC403", + "DOC5", + "DOC50", + "DOC501", + "DOC502", "DTZ", "DTZ0", "DTZ00", @@ -3062,6 +3091,11 @@ "FA10", "FA100", "FA102", + "FAST", + "FAST0", + "FAST00", + "FAST001", + "FAST002", "FBT", "FBT0", "FBT00", diff --git a/src/validate_pyproject_schema_store/resources/scikit-build.schema.json b/src/validate_pyproject_schema_store/resources/scikit-build.schema.json index eafeb6f..4fab1d1 100644 --- a/src/validate_pyproject_schema_store/resources/scikit-build.schema.json +++ b/src/validate_pyproject_schema_store/resources/scikit-build.schema.json @@ -18,6 +18,10 @@ "minProperties": 1, "additionalProperties": false, "properties": { + "scikit-build-version": { + "type": "string", + "description": "The version of scikit-build-version. Takes a specifier set." + }, "python-version": { "type": "string", "description": "The two-digit Python version. Takes a specifier set." @@ -46,6 +50,26 @@ "type": "string", "description": "The state of the build, one of `sdist`, `wheel`, `editable`, `metadata_wheel`, and `metadata_editable`. Takes a regex." }, + "from-sdist": { + "type": "boolean", + "description": "Whether the build is from an sdist." + }, + "failed": { + "type": "boolean", + "description": "Matches if the build fails. A build will be retried if there is at least one matching override with this set to true." + }, + "system-cmake": { + "type": "string", + "description": "The version of CMake found on the system. Takes a specifier set." + }, + "cmake-wheel": { + "type": "boolean", + "description": "Whether a cmake wheel is known to be provided for this system." + }, + "abi-flags": { + "type": "string", + "description": "A sorted string of the abi flags. Takes a regex." + }, "env": { "type": "object", "patternProperties": { @@ -90,8 +114,7 @@ }, "version": { "type": "string", - "default": ">=3.15", - "description": "The versions of CMake to allow. If CMake is not present on the system or does not pass this specifier, it will be downloaded via PyPI if possible. An empty string will disable this check." + "description": "The versions of CMake to allow. If CMake is not present on the system or does not pass this specifier, it will be downloaded via PyPI if possible. An empty string will disable this check. The default on 0.10+ is \"CMakeLists.txt\", which will read it from the project's CMakeLists.txt file, or \">=3.15\" if unreadable or <0.10." }, "args": { "type": "array", @@ -145,8 +168,8 @@ }, "verbose": { "type": "boolean", - "default": false, - "description": "Verbose printout when building." + "description": "DEPRECATED in 0.10, use build.verbose instead.", + "deprecated": true }, "build-type": { "type": "string", @@ -163,7 +186,8 @@ "items": { "type": "string" }, - "description": "The build targets to use when building the project. Empty builds the default target." + "description": "DEPRECATED in 0.10; use build.targets instead.", + "deprecated": true } } }, @@ -241,11 +265,23 @@ "additionalProperties": false, "properties": { "packages": { - "type": "array", - "items": { - "type": "string" - }, - "description": "A list of packages to auto-copy into the wheel. If this is not set, it will default to the first of ``src/``, ``python/``, or ```` if they exist. The prefix(s) will be stripped from the package name inside the wheel." + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "object", + "patternProperties": { + ".+": { + "type": "string" + } + } + } + ], + "description": "A list of packages to auto-copy into the wheel. If this is not set, it will default to the first of ``src/``, ``python/``, or ```` if they exist. The prefix(s) will be stripped from the package name inside the wheel. If a dict, provides a mapping of package name to source directory." }, "py-api": { "type": "string", @@ -327,6 +363,31 @@ } } }, + "build": { + "type": "object", + "additionalProperties": false, + "properties": { + "tool-args": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Extra args to pass directly to the builder in the build step." + }, + "targets": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The build targets to use when building the project. Empty builds the default target." + }, + "verbose": { + "type": "boolean", + "default": false, + "description": "Verbose printout when building." + } + } + }, "install": { "type": "object", "additionalProperties": false, @@ -409,6 +470,22 @@ ] } }, + "messages": { + "type": "object", + "additionalProperties": false, + "properties": { + "after-failure": { + "type": "string", + "default": "", + "description": "A message to print after a build failure." + }, + "after-success": { + "type": "string", + "default": "", + "description": "A message to print after a successful build." + } + } + }, "metadata": { "type": "object", "description": "List dynamic metadata fields and hook locations in this table.", @@ -480,6 +557,11 @@ "default": "", "description": "The build directory. Defaults to a temporary directory, but can be set." }, + "fail": { + "type": "boolean", + "default": false, + "description": "Immediately fail the build. This is only useful in overrides." + }, "overrides": { "type": "array", "description": "A list of overrides to apply to the settings, based on the `if` selector.", @@ -555,6 +637,18 @@ } } }, + "build": { + "type": "object", + "additionalProperties": false, + "properties": { + "tool-args": { + "$ref": "#/$defs/inherit" + }, + "targets": { + "$ref": "#/$defs/inherit" + } + } + }, "install": { "type": "object", "additionalProperties": false, @@ -588,12 +682,18 @@ "editable": { "$ref": "#/properties/editable" }, + "build": { + "$ref": "#/properties/build" + }, "install": { "$ref": "#/properties/install" }, "generate": { "$ref": "#/properties/generate" }, + "messages": { + "$ref": "#/properties/messages" + }, "metadata": { "$ref": "#/properties/metadata" }, @@ -608,6 +708,9 @@ }, "build-dir": { "$ref": "#/properties/build-dir" + }, + "fail": { + "$ref": "#/properties/fail" } } }