Skip to content

Commit

Permalink
Update ruff's JSON schema (SchemaStore#3893)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexWaygood authored Jun 28, 2024
1 parent 008b0f1 commit 45cb738
Showing 1 changed file with 44 additions and 36 deletions.
80 changes: 44 additions & 36 deletions src/schemas/json/ruff.json
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@
"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).",
"anyOf": [
{
"$ref": "#/definitions/SerializationFormat"
"$ref": "#/definitions/OutputFormat"
},
{
"type": "null"
Expand Down Expand Up @@ -578,11 +578,6 @@
"description": "Whether to show an enumeration of all fixed lint violations (overridden by the `--show-fixes` command-line flag).",
"type": ["boolean", "null"]
},
"show-source": {
"description": "Whether to show source code snippets when reporting lint violations (overridden by the `--show-source` command-line flag).",
"deprecated": true,
"type": ["boolean", "null"]
},
"src": {
"description": "The directories to consider when resolving first- vs. third-party imports.\n\nAs an example: given a Python package structure like:\n\n```text my_project ├── pyproject.toml └── src └── my_package ├── __init__.py ├── foo.py └── bar.py ```\n\nThe `./src` directory should be included in the `src` option (e.g., `src = [\"src\"]`), such that when resolving imports, `my_package.foo` is considered a first-party import.\n\nWhen omitted, the `src` directory will typically default to the directory containing the nearest `pyproject.toml`, `ruff.toml`, or `.ruff.toml` file (the \"project root\"), unless a configuration file is explicitly provided (e.g., via the `--config` command-line flag).\n\nThis field supports globs. For example, if you have a series of Python packages in a `python_modules` directory, `src = [\"python_modules/*\"]` would expand to incorporate all of the packages in that directory. User home directory and environment variables will also be expanded.",
"type": ["array", "null"],
Expand Down Expand Up @@ -1886,6 +1881,32 @@
},
"additionalProperties": false
},
"OutputFormat": {
"oneOf": [
{
"type": "string",
"enum": [
"concise",
"full",
"json",
"json-lines",
"junit",
"grouped",
"github",
"gitlab",
"pylint",
"rdjson",
"azure",
"sarif"
]
},
{
"deprecated": true,
"type": "string",
"enum": ["text"]
}
]
},
"ParametrizeNameType": {
"type": "string",
"enum": ["csv", "tuple", "list"]
Expand Down Expand Up @@ -2178,10 +2199,23 @@
"ASYNC1",
"ASYNC10",
"ASYNC100",
"ASYNC101",
"ASYNC102",
"ASYNC105",
"ASYNC109",
"ASYNC11",
"ASYNC110",
"ASYNC115",
"ASYNC116",
"ASYNC2",
"ASYNC21",
"ASYNC210",
"ASYNC22",
"ASYNC220",
"ASYNC221",
"ASYNC222",
"ASYNC23",
"ASYNC230",
"ASYNC25",
"ASYNC251",
"B",
"B0",
"B00",
Expand Down Expand Up @@ -2857,7 +2891,6 @@
"PLR1",
"PLR17",
"PLR170",
"PLR1701",
"PLR1702",
"PLR1704",
"PLR171",
Expand Down Expand Up @@ -3136,6 +3169,8 @@
"RUF027",
"RUF028",
"RUF029",
"RUF03",
"RUF030",
"RUF1",
"RUF10",
"RUF100",
Expand Down Expand Up @@ -3321,15 +3356,6 @@
"TID251",
"TID252",
"TID253",
"TRIO",
"TRIO1",
"TRIO10",
"TRIO100",
"TRIO105",
"TRIO109",
"TRIO11",
"TRIO110",
"TRIO115",
"TRY",
"TRY0",
"TRY00",
Expand Down Expand Up @@ -3432,24 +3458,6 @@
"YTT303"
]
},
"SerializationFormat": {
"type": "string",
"enum": [
"text",
"concise",
"full",
"json",
"json-lines",
"junit",
"grouped",
"github",
"gitlab",
"pylint",
"rdjson",
"azure",
"sarif"
]
},
"Strictness": {
"oneOf": [
{
Expand Down

0 comments on commit 45cb738

Please sign in to comment.