Skip to content

Commit cb6f07e

Browse files
authored
Update ruff's JSON schema (SchemaStore#4825)
This updates ruff's JSON schema to [9bee8376a17401f9736b45fdefffb62edc2f1668](astral-sh/ruff@9bee837)
1 parent d37e5e0 commit cb6f07e

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/schemas/json/ruff.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -736,12 +736,12 @@
736736
{
737737
"description": "Construct a map from module to its dependencies (i.e., the modules that it imports).",
738738
"type": "string",
739-
"enum": ["Dependencies"]
739+
"enum": ["dependencies"]
740740
},
741741
{
742742
"description": "Construct a map from module to its dependents (i.e., the modules that import it).",
743743
"type": "string",
744-
"enum": ["Dependents"]
744+
"enum": ["dependents"]
745745
}
746746
]
747747
},
@@ -1178,7 +1178,7 @@
11781178
}
11791179
},
11801180
"banned-module-level-imports": {
1181-
"description": "List of specific modules that may not be imported at module level, and should instead be imported lazily (e.g., within a function definition, or an `if TYPE_CHECKING:` block, or some other nested context).",
1181+
"description": "List of specific modules that may not be imported at module level, and should instead be imported lazily (e.g., within a function definition, or an `if TYPE_CHECKING:` block, or some other nested context). This also affects the rule `import-outside-top-level` if `banned-module-level-imports` is enabled.",
11821182
"type": ["array", "null"],
11831183
"items": {
11841184
"type": "string"
@@ -1298,7 +1298,7 @@
12981298
]
12991299
},
13001300
"skip-magic-trailing-comma": {
1301-
"description": "Ruff uses existing trailing commas as an indication that short lines should be left separate. If this option is set to `true`, the magic trailing comma is ignored.\n\nFor example, Ruff leaves the arguments separate even though collapsing the arguments to a single line doesn't exceed the line length if `skip-magic-trailing-comma = false`:\n\n```python # The arguments remain on separate lines because of the trailing comma after `b` def test( a, b, ): pass ```\n\nSetting `skip-magic-trailing-comma = true` changes the formatting to:\n\n```python # The arguments remain on separate lines because of the trailing comma after `b` def test(a, b): pass ```",
1301+
"description": "Ruff uses existing trailing commas as an indication that short lines should be left separate. If this option is set to `true`, the magic trailing comma is ignored.\n\nFor example, Ruff leaves the arguments separate even though collapsing the arguments to a single line doesn't exceed the line length if `skip-magic-trailing-comma = false`:\n\n```python # The arguments remain on separate lines because of the trailing comma after `b` def test( a, b, ): pass ```\n\nSetting `skip-magic-trailing-comma = true` changes the formatting to:\n\n```python # The arguments are collapsed to a single line because the trailing comma is ignored def test(a, b): pass ```",
13021302
"type": ["boolean", "null"]
13031303
}
13041304
},
@@ -3479,6 +3479,8 @@
34793479
"RUF06",
34803480
"RUF060",
34813481
"RUF061",
3482+
"RUF063",
3483+
"RUF064",
34823484
"RUF1",
34833485
"RUF10",
34843486
"RUF100",

0 commit comments

Comments
 (0)