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 [568cf88c6c5b5551a675ae2b13deedec0fe226cb](astral-sh/ruff@568cf88)
  • Loading branch information
ntBre committed Feb 27, 2025
1 parent 371af22 commit d1d5dc5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/schemas/json/ruff.json
Original file line number Diff line number Diff line change
Expand Up @@ -498,6 +498,13 @@
}
}
},
"per-file-target-version": {
"description": "A list of mappings from glob-style file pattern to Python version to use when checking the corresponding file(s).\n\nThis may be useful for overriding the global Python version settings in `target-version` or `requires-python` for a subset of files. For example, if you have a project with a minimum supported Python version of 3.9 but a subdirectory of developer scripts that want to use a newer feature like the `match` statement from Python 3.10, you can use `per-file-target-version` to specify `\"developer_scripts/*.py\" = \"py310\"`.\n\nThis setting is used by the linter to enforce any enabled version-specific lint rules, as well as by the formatter for any version-specific formatting options, such as parenthesizing context managers on Python 3.10+.",
"type": ["object", "null"],
"additionalProperties": {
"$ref": "#/definitions/PythonVersion"
}
},
"preview": {
"description": "Whether to enable preview mode. When preview mode is enabled, Ruff will use unstable rules, fixes, and formatting.",
"type": ["boolean", "null"]
Expand Down

0 comments on commit d1d5dc5

Please sign in to comment.