-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
configurationRelated to settings and configurationRelated to settings and configuration
Description
As brought up in #16417, the default Python version of 3.9 in ruff can be quite confusing, especially with the new version-related syntax errors. It would be nice if we could improve the no-config experience here.
A few possibilities for addressing this could be:
- change the default Python version to latest (3.13 currently)
- introduce a distinct
undefinedversion value to suppress version-related errors and rules - try to detect the environment Python version
The first of these would probably be easiest to implement but would make some rules (like the UP rules) useless apply incorrectly without setting a lower target version. The second option would likely have the same effect (target_version < 3.10 just becomes target_version.is_some_and(< 3.10) for example).
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
configurationRelated to settings and configurationRelated to settings and configuration