Files
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

20 lines
597 B
BlitzBasic

DESCRIPTION = "An extremely fast Python linter and code formatter, written in Rust."
SUMMARY = "An extremely fast Python linter and code formatter"
HOMEPAGE = "https://docs.astral.sh/ruff/"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=e679ca4f742cbfa29ab6a499529c2d39"
DEPENDS += "python3-maturin-native"
SRC_URI[sha256sum] = "e460aafd5495ec89efaa6ced2e4a9a581116451e1c88b9d37ef497e0f8e93982"
inherit pypi python_setuptools3_rust cargo-update-recipe-crates
CARGO_SRC_DIR = "rust"
require ${BPN}-crates.inc
INSANE_SKIP:${PN} = "already-stripped"
BBCLASSEXTEND = "native nativesdk"