Skip to content

Commit f753f2a

Browse files
authored
Update ruff's JSON schema (SchemaStore#4877)
1 parent 11fca37 commit f753f2a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/schemas/json/ruff.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -687,6 +687,12 @@
687687
"preview": {
688688
"description": "Whether to enable preview mode. When preview mode is enabled, Ruff will expose unstable commands.",
689689
"type": ["boolean", "null"]
690+
},
691+
"string-imports-min-dots": {
692+
"description": "The minimum number of dots in a string to consider it a valid import.\n\nThis setting is only relevant when [`detect-string-imports`](#detect-string-imports) is enabled. For example, if this is set to `2`, then only strings with at least two dots (e.g., `\"path.to.module\"`) would be considered valid imports.",
693+
"type": ["integer", "null"],
694+
"format": "uint",
695+
"minimum": 0.0
690696
}
691697
},
692698
"additionalProperties": false
@@ -1853,6 +1859,10 @@
18531859
}
18541860
]
18551861
},
1862+
"future-annotations": {
1863+
"description": "Whether to allow rules to add `from __future__ import annotations` in cases where this would simplify a fix or enable a new diagnostic.\n\nFor example, `TC001`, `TC002`, and `TC003` can move more imports into `TYPE_CHECKING` blocks if `__future__` annotations are enabled.\n\nThis setting is currently in [preview](https://docs.astral.sh/ruff/preview/) and requires preview mode to be enabled to have any effect.",
1864+
"type": ["boolean", "null"]
1865+
},
18561866
"ignore": {
18571867
"description": "A list of rule codes or prefixes to ignore. Prefixes can specify exact rules (like `F841`), entire categories (like `F`), or anything in between.\n\nWhen breaking ties between enabled and disabled rules (via `select` and `ignore`, respectively), more specific prefixes override less specific prefixes. `ignore` takes precedence over `select` if the same prefix appears in both.",
18581868
"type": ["array", "null"],

0 commit comments

Comments
 (0)