|
73 | 73 | } |
74 | 74 | }, |
75 | 75 | "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.", |
77 | 77 | "type": ["array", "null"], |
78 | 78 | "deprecated": true, |
79 | 79 | "items": { |
|
107 | 107 | } |
108 | 108 | }, |
109 | 109 | "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.", |
111 | 111 | "type": ["array", "null"], |
112 | 112 | "deprecated": true, |
113 | 113 | "items": { |
|
1325 | 1325 | } |
1326 | 1326 | ] |
1327 | 1327 | }, |
| 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 | + }, |
1328 | 1339 | "preview": { |
1329 | 1340 | "description": "Whether to enable the unstable preview style formatting.", |
1330 | 1341 | "type": ["boolean", "null"] |
|
1751 | 1762 | } |
1752 | 1763 | }, |
1753 | 1764 | "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.", |
1755 | 1766 | "type": ["array", "null"], |
1756 | 1767 | "deprecated": true, |
1757 | 1768 | "items": { |
|
1776 | 1787 | } |
1777 | 1788 | }, |
1778 | 1789 | "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.", |
1780 | 1791 | "type": ["array", "null"], |
1781 | 1792 | "items": { |
1782 | 1793 | "$ref": "#/definitions/RuleSelector" |
|
2196 | 2207 | "NameImports": { |
2197 | 2208 | "type": "string" |
2198 | 2209 | }, |
| 2210 | + "NestedStringQuoteStyle": { |
| 2211 | + "type": "string", |
| 2212 | + "enum": ["alternating", "preferred"] |
| 2213 | + }, |
2199 | 2214 | "OutputFormat": { |
2200 | 2215 | "type": "string", |
2201 | 2216 | "enum": [ |
|
3638 | 3653 | "RUF048", |
3639 | 3654 | "RUF049", |
3640 | 3655 | "RUF05", |
| 3656 | + "RUF050", |
3641 | 3657 | "RUF051", |
3642 | 3658 | "RUF052", |
3643 | 3659 | "RUF053", |
|
3660 | 3676 | "RUF07", |
3661 | 3677 | "RUF070", |
3662 | 3678 | "RUF071", |
| 3679 | + "RUF072", |
| 3680 | + "RUF073", |
3663 | 3681 | "RUF1", |
3664 | 3682 | "RUF10", |
3665 | 3683 | "RUF100", |
|
0 commit comments