Skip to content
Snippets Groups Projects
Commit 7b2c0259 authored by Hugo Barrera's avatar Hugo Barrera Committed by Natanael Copa
Browse files

community/ruff: upgrade to 0.9.3

Includes a patch with a recent commit from upstream to fix a failing test.

See: https://github.com/astral-sh/ruff/issues/15707
Closes: !78284
parent 93b9a2b3
No related branches found
No related tags found
2 merge requests!79570community/firefox-esr: upgrade to 128.7.0,!78945community/ruff: upgrade to 0.9.3
Pipeline #293228 skipped
From 9384ba4b911585ecf195eeb845db842e77012e26 Mon Sep 17 00:00:00 2001
From: Dhruv Manilawala <dhruvmanila@gmail.com>
Date: Fri, 24 Jan 2025 10:17:59 +0530
Subject: [PATCH] Remove test rules from JSON schema (#15627)
Closes: #15707
---
crates/ruff_linter/src/rule_selector.rs | 2 +-
ruff.schema.json | 1 -
2 files changed, 1 insertion(+), 2 deletions(-)
diff --git a/crates/ruff_linter/src/rule_selector.rs b/crates/ruff_linter/src/rule_selector.rs
index 0c70a49806979..2ee25df5d0f0c 100644
--- a/crates/ruff_linter/src/rule_selector.rs
+++ b/crates/ruff_linter/src/rule_selector.rs
@@ -316,7 +316,7 @@ mod schema {
// Filter out all test-only rules
#[cfg(any(feature = "test-rules", test))]
#[allow(clippy::used_underscore_binding)]
- if _rule.starts_with("RUF9") {
+ if _rule.starts_with("RUF9") || _rule == "PLW0101" {
return false;
}
diff --git a/ruff.schema.json b/ruff.schema.json
index 1ded574b7420c..0e7d60751e19a 100644
--- a/ruff.schema.json
+++ b/ruff.schema.json
@@ -3653,7 +3653,6 @@
"PLW0",
"PLW01",
"PLW010",
- "PLW0101",
"PLW0108",
"PLW012",
"PLW0120",
maintainer="Hugo Osvaldo Barrera <hugo@whynothugo.nl>"
pkgname=ruff
pkgver=0.8.3
pkgver=0.9.3
pkgrel=0
pkgdesc="Extremely fast Python linter"
url="https://github.com/astral-sh/ruff"
......@@ -14,7 +14,8 @@ subpackages="
$pkgname-zsh-completion
py3-$pkgname:_python:noarch
"
source="https://github.com/astral-sh/ruff/archive/$pkgver/ruff-$pkgver.tar.gz"
source="https://github.com/astral-sh/ruff/archive/$pkgver/ruff-$pkgver.tar.gz
9384ba4b911585ecf195eeb845db842e77012e26.patch"
# net: cargo
options="net"
......@@ -70,5 +71,6 @@ _python() {
}
sha512sums="
d14c585f0da956940ac0d00bd3294b567e2a51e01b00579d22726205db26516f67ece17d0749bd0d7ae89a00f6c03eae222302a8d6bb2747af0a31a181f07fbb ruff-0.8.3.tar.gz
a5f0ec717d57b6a8f849b13b3ff7e78cef7173dd09532f31b48af20cc54a5df3efd83f751f7109e9551378018c559beb2d1f7971015599dcdbee30fcfc7d3769 ruff-0.9.3.tar.gz
039f474a9147c66d102994672db4038991c2f5287e181c3f0877171db524d4c790d314624e5779279fb3b9cbb82917b60c54a94c43fed91a9a5bdc2a69a15d97 9384ba4b911585ecf195eeb845db842e77012e26.patch
"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment