mirror of
https://github.com/astral-sh/ruff.git
synced 2025-12-02 00:49:59 +00:00
## Summary
This PR is another step in preparing to detect syntax errors in the
parser. It introduces the new `per-file-target-version` top-level
configuration option, which holds a mapping of compiled glob patterns to
Python versions. I intend to use the
`LinterSettings::resolve_target_version` method here to pass to the
parser:
|
||
|---|---|---|
| .. | ||
| resources | ||
| src | ||
| Cargo.toml | ||