Skip to content

Commit

Permalink
Update ruff's JSON schema
Browse files Browse the repository at this point in the history
This updates ruff's JSON schema to [5c537b6dbbb8c3cd9ff13869fb2817f81b615da9](astral-sh/ruff@5c537b6)
  • Loading branch information
AlexWaygood committed Oct 17, 2024
1 parent 76b1451 commit 21e53c6
Showing 1 changed file with 15 additions and 51 deletions.
66 changes: 15 additions & 51 deletions src/schemas/json/ruff.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,6 @@
"minLength": 1
}
},
"allowed-unused-imports": {
"description": "A list of modules which is allowed even though they are not used in the code.\n\nThis is useful when a module has a side effect when imported.",
"deprecated": true,
"type": ["array", "null"],
"items": {
"type": "string"
}
},
"analyze": {
"description": "Options to configure import map generation.",
"anyOf": [
Expand Down Expand Up @@ -604,18 +596,6 @@
"type": "string"
}
},
"tab-size": {
"description": "The number of spaces a tab is equal to when enforcing long-line violations (like `E501`) or formatting code with the formatter.\n\nThis option changes the number of spaces inserted by the formatter when using soft-tabs (`indent-style = space`).",
"deprecated": true,
"anyOf": [
{
"$ref": "#/definitions/IndentWidth"
},
{
"type": "null"
}
]
},
"target-version": {
"description": "The minimum Python version to target, e.g., when considering automatic code upgrades, like rewriting type annotations. Ruff will not propose changes using features that are not available in the given version.\n\nFor example, to represent supporting Python >=3.10 or ==3.10 specify `target-version = \"py310\"`.\n\nIf you're already using a `pyproject.toml` file, we recommend `project.requires-python` instead, as it's based on Python packaging standards, and will be respected by other tools. For example, Ruff treats the following as identical to `target-version = \"py38\"`:\n\n```toml [project] requires-python = \">=3.8\" ```\n\nIf both are specified, `target-version` takes precedence over `requires-python`.\n\nNote that a stub file can [sometimes make use of a typing feature](https://typing.readthedocs.io/en/latest/spec/distributing.html#syntax) before it is available at runtime, as long as the stub does not make use of new *syntax*. For example, a type checker will understand `int | str` in a stub as being a `Union` type annotation, even if the type checker is run using Python 3.9, despite the fact that the `|` operator can only be used to create union types at runtime on Python 3.10+. As such, Ruff will often recommend newer features in a stub file than it would for an equivalent runtime file with the same target version.",
"anyOf": [
Expand Down Expand Up @@ -1530,13 +1510,6 @@
"minLength": 1
}
},
"allowed-unused-imports": {
"description": "A list of modules which is allowed even though they are not used in the code.\n\nThis is useful when a module has a side effect when imported.",
"type": ["array", "null"],
"items": {
"type": "string"
}
},
"dummy-variable-rgx": {
"description": "A regular expression used to identify \"dummy\" variables, or those which should be ignored when enforcing (e.g.) unused-variable rules. The default expression matches `_`, `__`, and `_var`, but not `_var_`.",
"type": ["string", "null"]
Expand Down Expand Up @@ -1986,29 +1959,20 @@
"type": "string"
},
"OutputFormat": {
"oneOf": [
{
"type": "string",
"enum": [
"concise",
"full",
"json",
"json-lines",
"junit",
"grouped",
"github",
"gitlab",
"pylint",
"rdjson",
"azure",
"sarif"
]
},
{
"deprecated": true,
"type": "string",
"enum": ["text"]
}
"type": "string",
"enum": [
"concise",
"full",
"json",
"json-lines",
"junit",
"grouped",
"github",
"gitlab",
"pylint",
"rdjson",
"azure",
"sarif"
]
},
"ParametrizeNameType": {
Expand Down Expand Up @@ -3518,11 +3482,11 @@
"TRY2",
"TRY20",
"TRY201",
"TRY203",
"TRY3",
"TRY30",
"TRY300",
"TRY301",
"TRY302",
"TRY4",
"TRY40",
"TRY400",
Expand Down

0 comments on commit 21e53c6

Please sign in to comment.