Skip to content

Commit 9d5005d

Browse files
authored
Update ruff's JSON schema (SchemaStore#5476)
This updates ruff's JSON schema to [0ef39de46c006994fb1e90f7bd4ba09c0b2c1f79](astral-sh/ruff@0ef39de)
1 parent 48d0b4b commit 9d5005d

1 file changed

Lines changed: 72 additions & 0 deletions

File tree

src/schemas/json/ruff.json

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -655,6 +655,10 @@
655655
"Alias": {
656656
"type": "string"
657657
},
658+
"AllImports": {
659+
"type": "string",
660+
"enum": ["all"]
661+
},
658662
"AnalyzeOptions": {
659663
"description": "Configures Ruff's `analyze` command.",
660664
"type": "object",
@@ -1176,6 +1180,17 @@
11761180
"description": "Options for the `flake8-tidy-imports` plugin",
11771181
"type": "object",
11781182
"properties": {
1183+
"ban-lazy": {
1184+
"description": "Specific modules that may not be imported lazily, or `\"all\"` to forbid lazy imports except\nfor any modules excluded from the selector. This rule is only enforced when targeting\nPython 3.15 or newer.",
1185+
"anyOf": [
1186+
{
1187+
"$ref": "#/definitions/ImportSelector"
1188+
},
1189+
{
1190+
"type": "null"
1191+
}
1192+
]
1193+
},
11791194
"ban-relative-imports": {
11801195
"description": "Whether to ban all relative imports (`\"all\"`), or only those imports\nthat extend into the parent module or beyond (`\"parents\"`).",
11811196
"anyOf": [
@@ -1200,6 +1215,17 @@
12001215
"items": {
12011216
"type": "string"
12021217
}
1218+
},
1219+
"require-lazy": {
1220+
"description": "Specific modules that must be imported lazily in contexts where `lazy import` is legal, or\n`\"all\"` to require every lazily-convertible import to use the `lazy` keyword. Ruff ignores\ncontexts where `lazy import` is invalid, such as functions, classes, `try`/`except`\nblocks, `__future__` imports, and `from ... import *` statements. This rule is only\nenforced when targeting Python 3.15 or newer.",
1221+
"anyOf": [
1222+
{
1223+
"$ref": "#/definitions/ImportSelector"
1224+
},
1225+
{
1226+
"type": "null"
1227+
}
1228+
]
12031229
}
12041230
},
12051231
"additionalProperties": false
@@ -1331,6 +1357,46 @@
13311357
}
13321358
]
13331359
},
1360+
"ImportSelection": {
1361+
"anyOf": [
1362+
{
1363+
"$ref": "#/definitions/AllImports"
1364+
},
1365+
{
1366+
"type": "array",
1367+
"items": {
1368+
"type": "string"
1369+
}
1370+
}
1371+
]
1372+
},
1373+
"ImportSelector": {
1374+
"anyOf": [
1375+
{
1376+
"$ref": "#/definitions/ImportSelection"
1377+
},
1378+
{
1379+
"$ref": "#/definitions/ImportSelectorSettings"
1380+
}
1381+
]
1382+
},
1383+
"ImportSelectorSettings": {
1384+
"type": "object",
1385+
"properties": {
1386+
"exclude": {
1387+
"type": "array",
1388+
"default": [],
1389+
"items": {
1390+
"type": "string"
1391+
}
1392+
},
1393+
"include": {
1394+
"$ref": "#/definitions/ImportSelection"
1395+
}
1396+
},
1397+
"additionalProperties": false,
1398+
"required": ["include"]
1399+
},
13341400
"ImportType": {
13351401
"type": "string",
13361402
"enum": [
@@ -2479,11 +2545,13 @@
24792545
"AIR00",
24802546
"AIR001",
24812547
"AIR002",
2548+
"AIR003",
24822549
"AIR3",
24832550
"AIR30",
24842551
"AIR301",
24852552
"AIR302",
24862553
"AIR303",
2554+
"AIR304",
24872555
"AIR31",
24882556
"AIR311",
24892557
"AIR312",
@@ -2580,6 +2648,8 @@
25802648
"B034",
25812649
"B035",
25822650
"B039",
2651+
"B04",
2652+
"B043",
25832653
"B9",
25842654
"B90",
25852655
"B901",
@@ -3589,6 +3659,7 @@
35893659
"RUF069",
35903660
"RUF07",
35913661
"RUF070",
3662+
"RUF071",
35923663
"RUF1",
35933664
"RUF10",
35943665
"RUF100",
@@ -3782,6 +3853,7 @@
37823853
"TID251",
37833854
"TID252",
37843855
"TID253",
3856+
"TID254",
37853857
"TRY",
37863858
"TRY0",
37873859
"TRY00",

0 commit comments

Comments
 (0)