Skip to content

Commit ccf4f88

Browse files
authored
Update ruff's JSON schema (SchemaStore#5368)
This updates ruff's JSON schema to [a2f11d239f91cf8daedb0764ec15fcfe29c5ae6d](astral-sh/ruff@a2f11d2)
1 parent 3dc12ed commit ccf4f88

1 file changed

Lines changed: 28 additions & 1 deletion

File tree

src/schemas/json/ruff.json

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1220,7 +1220,7 @@
12201220
}
12211221
},
12221222
"runtime-evaluated-decorators": {
1223-
"description": "Exempt classes and functions decorated with any of the enumerated\ndecorators from being moved into type-checking blocks.\n\nCommon examples include Pydantic's `@pydantic.validate_call` decorator\n(for functions) and attrs' `@attrs.define` decorator (for classes).\n\nThis also supports framework decorators like FastAPI's `fastapi.FastAPI.get`\nwhich will work across assignments in the same module.\n\nFor example:\n```python\nimport fastapi\n\napp = FastAPI(\"app\")\n\n@app.get(\"/home\")\ndef home() -> str: ...\n```\n\nHere `app.get` will correctly be identified as `fastapi.FastAPI.get`.",
1223+
"description": "Exempt classes and functions decorated with any of the enumerated\ndecorators from being moved into type-checking blocks.\n\nCommon examples include Pydantic's `@pydantic.validate_call` decorator\n(for functions) and attrs' `@attrs.define` decorator (for classes).\n\nThis also supports framework decorators like FastAPI's `fastapi.FastAPI.get`\nwhich will work across assignments in the same module.\n\nFor example:\n```python\nfrom fastapi import FastAPI\n\napp = FastAPI(\"app\")\n\n@app.get(\"/home\")\ndef home() -> str: ...\n```\n\nHere `app.get` will correctly be identified as `fastapi.FastAPI.get`.",
12241224
"type": ["array", "null"],
12251225
"items": {
12261226
"type": "string"
@@ -1433,6 +1433,30 @@
14331433
"description": "Whether to place `import from` imports before straight imports when sorting.\n\nFor example, by default, imports will be sorted such that straight imports appear\nbefore `import from` imports, as in:\n```python\nimport os\nimport sys\nfrom typing import List\n```\n\nSetting `from-first = true` will instead sort such that `import from` imports appear\nbefore straight imports, as in:\n```python\nfrom typing import List\nimport os\nimport sys\n```",
14341434
"type": ["boolean", "null"]
14351435
},
1436+
"import-heading": {
1437+
"description": "A mapping from import section names to their heading comments.\n\nWhen set, a comment with the specified text will be added above imports\nin the corresponding section. If a heading comment already exists, it\nwill be replaced.\n\nCompatible with isort's `import_heading_{section_name}` settings.",
1438+
"type": ["object", "null"],
1439+
"properties": {
1440+
"first-party": {
1441+
"type": "string"
1442+
},
1443+
"future": {
1444+
"type": "string"
1445+
},
1446+
"local-folder": {
1447+
"type": "string"
1448+
},
1449+
"standard-library": {
1450+
"type": "string"
1451+
},
1452+
"third-party": {
1453+
"type": "string"
1454+
}
1455+
},
1456+
"additionalProperties": {
1457+
"type": "string"
1458+
}
1459+
},
14361460
"known-first-party": {
14371461
"description": "A list of modules to consider first-party, regardless of whether they\ncan be identified as such via introspection of the local filesystem.\n\nSupports glob patterns. For more information on the glob syntax, refer\nto the [`globset` documentation](https://docs.rs/globset/latest/globset/#syntax).",
14381462
"type": ["array", "null"],
@@ -2452,6 +2476,8 @@
24522476
"AIR31",
24532477
"AIR311",
24542478
"AIR312",
2479+
"AIR32",
2480+
"AIR321",
24552481
"ALL",
24562482
"ANN",
24572483
"ANN0",
@@ -3546,6 +3572,7 @@
35463572
"RUF066",
35473573
"RUF067",
35483574
"RUF068",
3575+
"RUF069",
35493576
"RUF1",
35503577
"RUF10",
35513578
"RUF100",

0 commit comments

Comments
 (0)