Skip to content

Commit fb3312a

Browse files
authored
Update ruff's JSON schema (SchemaStore#5538)
This updates ruff's JSON schema to [1b4bf97df74a392ad6a93c37c0fe5ea409fcd934](astral-sh/ruff@1b4bf97)
1 parent 33cb08b commit fb3312a

File tree

1 file changed

+22
-4
lines changed

1 file changed

+22
-4
lines changed

src/schemas/json/ruff.json

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
}
7474
},
7575
"extend-ignore": {
76-
"description": "A list of rule codes or prefixes to ignore, in addition to those\nspecified by `ignore`.",
76+
"description": "A list of rule codes or prefixes to ignore, in addition to those\nspecified by `ignore`.\n\nThis option is deprecated because it is now interchangeable with\n[`ignore`](#lint_ignore). In earlier versions of Ruff, `ignore` would\n_replace_ the set of ignored rules when using configuration inheritance\n(via the top-level [`extend`](https://docs.astral.sh/ruff/settings/#extend)\nsetting), while `extend-ignore` would _add_ to the inherited set. Ruff\nnow merges both `ignore` and `extend-ignore` into a single set, so the\ndistinction no longer applies. Use [`ignore`](#lint_ignore) instead.",
7777
"type": ["array", "null"],
7878
"deprecated": true,
7979
"items": {
@@ -107,7 +107,7 @@
107107
}
108108
},
109109
"extend-select": {
110-
"description": "A list of rule codes or prefixes to enable, in addition to those\nspecified by [`select`](#lint_select).",
110+
"description": "A list of rule codes or prefixes to enable, in addition to those\nspecified by [`select`](#lint_select).\n\nUnlike [`select`](#lint_select), which _replaces_ the default rule set\nwhen specified, `extend-select` _adds_ to whatever rules are already\nactive. This makes `extend-select` the preferred option when you want\nto enable additional rules on top of the defaults without having to\nenumerate them.\n\nFor example, to enable the defaults plus flake8-bugbear:\n\n```toml\n[tool.ruff.lint]\n# Adds flake8-bugbear on top of the default rules (E4, E7, E9, F).\nextend-select = [\"B\"]\n```\n\nUsing `select = [\"B\"]` instead would _replace_ the defaults, enabling\nonly flake8-bugbear.",
111111
"type": ["array", "null"],
112112
"deprecated": true,
113113
"items": {
@@ -1325,6 +1325,17 @@
13251325
}
13261326
]
13271327
},
1328+
"nested-string-quote-style": {
1329+
"description": "Controls the quote style for nested strings inside interpolated string expressions.\n\n- `alternating` (default): Use alternating quotes.\n- `preferred`: Use the configured [`quote-style`](#format_quote-style).\n\n```python\nf\"{data['key']}\" # alternating (default)\nf\"{data[\"key\"]}\" # preferred\n```\n\nNote: This setting has no effect when targeting Python versions below 3.12.",
1330+
"anyOf": [
1331+
{
1332+
"$ref": "#/definitions/NestedStringQuoteStyle"
1333+
},
1334+
{
1335+
"type": "null"
1336+
}
1337+
]
1338+
},
13281339
"preview": {
13291340
"description": "Whether to enable the unstable preview style formatting.",
13301341
"type": ["boolean", "null"]
@@ -1751,7 +1762,7 @@
17511762
}
17521763
},
17531764
"extend-ignore": {
1754-
"description": "A list of rule codes or prefixes to ignore, in addition to those\nspecified by `ignore`.",
1765+
"description": "A list of rule codes or prefixes to ignore, in addition to those\nspecified by `ignore`.\n\nThis option is deprecated because it is now interchangeable with\n[`ignore`](#lint_ignore). In earlier versions of Ruff, `ignore` would\n_replace_ the set of ignored rules when using configuration inheritance\n(via the top-level [`extend`](https://docs.astral.sh/ruff/settings/#extend)\nsetting), while `extend-ignore` would _add_ to the inherited set. Ruff\nnow merges both `ignore` and `extend-ignore` into a single set, so the\ndistinction no longer applies. Use [`ignore`](#lint_ignore) instead.",
17551766
"type": ["array", "null"],
17561767
"deprecated": true,
17571768
"items": {
@@ -1776,7 +1787,7 @@
17761787
}
17771788
},
17781789
"extend-select": {
1779-
"description": "A list of rule codes or prefixes to enable, in addition to those\nspecified by [`select`](#lint_select).",
1790+
"description": "A list of rule codes or prefixes to enable, in addition to those\nspecified by [`select`](#lint_select).\n\nUnlike [`select`](#lint_select), which _replaces_ the default rule set\nwhen specified, `extend-select` _adds_ to whatever rules are already\nactive. This makes `extend-select` the preferred option when you want\nto enable additional rules on top of the defaults without having to\nenumerate them.\n\nFor example, to enable the defaults plus flake8-bugbear:\n\n```toml\n[tool.ruff.lint]\n# Adds flake8-bugbear on top of the default rules (E4, E7, E9, F).\nextend-select = [\"B\"]\n```\n\nUsing `select = [\"B\"]` instead would _replace_ the defaults, enabling\nonly flake8-bugbear.",
17801791
"type": ["array", "null"],
17811792
"items": {
17821793
"$ref": "#/definitions/RuleSelector"
@@ -2196,6 +2207,10 @@
21962207
"NameImports": {
21972208
"type": "string"
21982209
},
2210+
"NestedStringQuoteStyle": {
2211+
"type": "string",
2212+
"enum": ["alternating", "preferred"]
2213+
},
21992214
"OutputFormat": {
22002215
"type": "string",
22012216
"enum": [
@@ -3638,6 +3653,7 @@
36383653
"RUF048",
36393654
"RUF049",
36403655
"RUF05",
3656+
"RUF050",
36413657
"RUF051",
36423658
"RUF052",
36433659
"RUF053",
@@ -3660,6 +3676,8 @@
36603676
"RUF07",
36613677
"RUF070",
36623678
"RUF071",
3679+
"RUF072",
3680+
"RUF073",
36633681
"RUF1",
36643682
"RUF10",
36653683
"RUF100",

0 commit comments

Comments
 (0)