Skip to content

Commit

Permalink
Update ruff's JSON schema (#4426)
Browse files Browse the repository at this point in the history
This updates ruff's JSON schema to [10d3e64ccdf69d90c3252a15b3408a4238427792](astral-sh/ruff@10d3e64)
  • Loading branch information
dylwil3 authored Feb 7, 2025
1 parent 3ab8b0a commit cf0e6f1
Showing 1 changed file with 10 additions and 14 deletions.
24 changes: 10 additions & 14 deletions src/schemas/json/ruff.json
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@
]
},
"ignore": {
"description": "A list of rule codes or prefixes to ignore. Prefixes can specify exact rules (like `F841`), entire categories (like `F`), or anything in between.\n\nWhen breaking ties between enabled and disabled rules (via `select` and `ignore`, respectively), more specific prefixes override less specific prefixes.",
"description": "A list of rule codes or prefixes to ignore. Prefixes can specify exact rules (like `F841`), entire categories (like `F`), or anything in between.\n\nWhen breaking ties between enabled and disabled rules (via `select` and `ignore`, respectively), more specific prefixes override less specific prefixes. `ignore` takes precedence over `select` if the same prefix appears in both.",
"deprecated": true,
"type": ["array", "null"],
"items": {
Expand Down Expand Up @@ -578,7 +578,7 @@
"type": ["boolean", "null"]
},
"select": {
"description": "A list of rule codes or prefixes to enable. Prefixes can specify exact rules (like `F841`), entire categories (like `F`), or anything in between.\n\nWhen breaking ties between enabled and disabled rules (via `select` and `ignore`, respectively), more specific prefixes override less specific prefixes.",
"description": "A list of rule codes or prefixes to enable. Prefixes can specify exact rules (like `F841`), entire categories (like `F`), or anything in between.\n\nWhen breaking ties between enabled and disabled rules (via `select` and `ignore`, respectively), more specific prefixes override less specific prefixes. `ignore` takes precedence over `select` if the same prefix appears in both.",
"deprecated": true,
"type": ["array", "null"],
"items": {
Expand Down Expand Up @@ -742,26 +742,18 @@
"anyOf": [
{
"description": "Wrap docstring code examples at a fixed line width.",
"allOf": [
"oneOf": [
{
"$ref": "#/definitions/LineWidth"
}
]
},
{
"description": "Respect the line length limit setting for the surrounding Python code.",
"allOf": [
{
"$ref": "#/definitions/Dynamic"
}
]
"const": "dynamic"
}
]
},
"Dynamic": {
"type": "string",
"const": "dynamic"
},
"Flake8AnnotationsOptions": {
"description": "Options for the `flake8-annotations` plugin.",
"type": "object",
Expand Down Expand Up @@ -1816,7 +1808,7 @@
]
},
"ignore": {
"description": "A list of rule codes or prefixes to ignore. Prefixes can specify exact rules (like `F841`), entire categories (like `F`), or anything in between.\n\nWhen breaking ties between enabled and disabled rules (via `select` and `ignore`, respectively), more specific prefixes override less specific prefixes.",
"description": "A list of rule codes or prefixes to ignore. Prefixes can specify exact rules (like `F841`), entire categories (like `F`), or anything in between.\n\nWhen breaking ties between enabled and disabled rules (via `select` and `ignore`, respectively), more specific prefixes override less specific prefixes. `ignore` takes precedence over `select` if the same prefix appears in both.",
"type": ["array", "null"],
"items": {
"$ref": "#/definitions/RuleSelector"
Expand Down Expand Up @@ -1959,7 +1951,7 @@
]
},
"select": {
"description": "A list of rule codes or prefixes to enable. Prefixes can specify exact rules (like `F841`), entire categories (like `F`), or anything in between.\n\nWhen breaking ties between enabled and disabled rules (via `select` and `ignore`, respectively), more specific prefixes override less specific prefixes.",
"description": "A list of rule codes or prefixes to enable. Prefixes can specify exact rules (like `F841`), entire categories (like `F`), or anything in between.\n\nWhen breaking ties between enabled and disabled rules (via `select` and `ignore`, respectively), more specific prefixes override less specific prefixes. `ignore` takes precedence over `select` if the same prefix appears in both.",
"type": ["array", "null"],
"items": {
"$ref": "#/definitions/RuleSelector"
Expand Down Expand Up @@ -2866,9 +2858,11 @@
"LOG00",
"LOG001",
"LOG002",
"LOG004",
"LOG007",
"LOG009",
"LOG01",
"LOG014",
"LOG015",
"N",
"N8",
Expand Down Expand Up @@ -3408,6 +3402,7 @@
"RUF05",
"RUF051",
"RUF052",
"RUF053",
"RUF055",
"RUF056",
"RUF057",
Expand Down Expand Up @@ -3671,6 +3666,7 @@
"UP045",
"UP046",
"UP047",
"UP049",
"W",
"W1",
"W19",
Expand Down

0 comments on commit cf0e6f1

Please sign in to comment.