Joar Wandborg
|
42b63b9a61
|
Support ruff `0.8.0` by setting ruff `target-version` to `py38` (#24492)
`ruff` 0.8.0 (released 2024-11-22) no longer defaults to supporting
Python 3.8,
> Ruff now defaults to Python 3.9 instead of 3.8 if no explicit Python
version
> is configured using
[`ruff.target-version`](https://docs.astral.sh/ruff/settings/#target-version)
> or
[`project.requires-python`](https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#python-requires)
>
([https://github.com/microsoft/vscode-python/pull/13896](https://github.com/astral-sh/ruff/pull/13896))
> —
f3dac27e9a/CHANGELOG.md (080)
We want to support Python 3.8 until February 2025, so we need to set
`target-version`.
> 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.
> — https://docs.astral.sh/ruff/settings/#target-version
Can be used as an alternative to
https://github.com/microsoft/vscode-python/pull/24488 until py38 support
is dropped.
This PR also reverts the pinning of `ruff` merged in #24484.
|
2024-11-26 11:38:37 +00:00 |
Karthik Nadig
|
5cec0e0461
|
Revert "ruff 0.8.0 fixes" (#24489)
Reverts microsoft/vscode-python#24488
|
2024-11-25 21:00:10 +00:00 |
Joar Wandborg
|
98fea6ec58
|
ruff 0.8.0 fixes (#24488)
- Ruff 0.8.0 was released on November 22nd
([changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md#080))
- [Lint action installs latest version of
`ruff`](9059aeae65/.github/actions/lint/action.yml (L46) )
|
2024-11-25 17:02:10 +00:00 |
Brett Cannon
|
462b9bf2cb
|
Enable explicit Ruff check rules (#23741)
Co-authored-by: Rafał <23004737+rafrafek@users.noreply.github.com>
|
2024-07-09 13:01:15 -07:00 |
Brett Cannon
|
e931bed3ef
|
Move to Ruff for formatting (#23060)
Also set the line length to 100.
|
2024-03-12 15:35:53 -07:00 |
Brett Cannon
|
7ea5584291
|
Add linting rules for ruff (#22741)
Co-authored-by: Karthik Nadig <kanadig@microsoft.com>
Co-authored-by: eleanorjboyd <eleanorboyd@microsoft.com>
|
2024-03-12 12:24:59 -07:00 |
Karthik Nadig
|
27783cea76
|
Rename `pythonFiles` to `python_files` (#22921)
|
2024-03-01 13:27:50 -08:00 |