Commit Graph
5 Commits
Author SHA1 Message Date
Leon Anavi a31a426973 python3-ruff: Upgrade 0.16.4 -> 0.16.8
Upgrade to release 0.16.8:

Bug fixes

- Visit functional TypedDict keyword arguments correctly
- [flake8-simplify] Detect nested async with under sync parent
  (SIM117)
- [flake8-simplify] Preserve operand order in SIM109 fix
- [pyupgrade] Preserve required parentheses in multiline UP040
  fixes
- [pyupgrade] Skip TypeVarTuple and ParamSpec conversions with
  bounds or constraints (UP040, UP046, UP047)

Rule changes

- Add support for __lazy_modules__
- Recognize PEP-728 TypedDict class keywords
- Recognize quoted types in typing.TypeForm
- Support conditional assignment to __lazy_modules__
- [flake8-type-checking] Prefer lazy imports over TYPE_CHECKING on
  Python 3.15 and later (TC001, TC002, TC003)
- [pyupgrade] Make the fix for UP040 always unsafe
- [pyupgrade] Stop recommending deprecated ByteString aliases
  (UP035)
- [ruff, flake8-use-pathlib] Recognize the parent_mode argument
  (RUF064, PTH103)
- [ruff] Detect \Z in pytest.raises() match patterns (RUF043)

This work was sponsored by GOVCERT.LU.

Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
2026-09-22 11:36:20 -07:00
Wang Mingyu b647c41b16 python3-ruff: upgrade 0.16.3 -> 0.16.4
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
2026-08-26 10:26:46 -07:00
Wang Mingyu fb3ebc53a9 python3-ruff: upgrade 0.16.1 -> 0.16.3
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
2026-08-19 14:27:49 -07:00
Wang Mingyu 83c617538d python3-ruff: upgrade 0.16.0 -> 0.16.1
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
2026-08-03 22:57:42 -07:00
Leon Anavi 2b483e9134 python3-ruff: Add recipe
Ruff is an extremely fast Python linter and code formatter, written
in Rust. Add a recipe for release 0.16.0:

- Ruff now enables a much larger set of rules by default (413, up
  from 59). See the blog post for more details and the new Default
  Rules page for a full listing of the enabled rules.
- Ruff can now format Python code blocks in Markdown files and will
  do this by default. See the documentation for more details.
- Ruff now supports ruff: ignore comments at the ends of lines,
  like noqa comments, or on the line preceding a diagnostic. For
  example, these both suppress an unused-import (F401) diagnostic.
- Fixes are now shown in check and format --check output.
- format --check now supports the same output formats as the linter,
  including the github and gitlab outputs for rendering annotations
  in CI
- The filename, location, end_location, fix.edits[].location, and
  fix.edits[].end_location fields in the JSON output format may now
  be null rather than defaulting to the empty string and row 1,
  column 1, respectively.

This work was sponsored by GOVCERT.LU.

Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
2026-07-28 22:48:21 -07:00