public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/ruff] rawhide: Update to 0.16.7 (close RHBZ#2531616)
@ 2026-09-11 6:16 Benjamin A. Beasley
0 siblings, 0 replies; only message in thread
From: Benjamin A. Beasley @ 2026-09-11 6:16 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/ruff
Branch : rawhide
Commit : 26f218658e7ae79a9fa7bda57e833a33dd8a871d
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date : 2026-09-10T22:31:59+01:00
Stats : +6/-58 in 3 file(s)
URL : https://src.fedoraproject.org/rpms/ruff/c/26f218658e7ae79a9fa7bda57e833a33dd8a871d?branch=rawhide
Log:
Update to 0.16.7 (close RHBZ#2531616)
---
diff --git a/28245.patch b/28245.patch
deleted file mode 100644
index 33c09bc..0000000
--- a/28245.patch
+++ /dev/null
@@ -1,51 +0,0 @@
-From 6ca0c8ffde8e9ecb21aa623634c1b845efec3eff Mon Sep 17 00:00:00 2001
-From: Xeonacid <h.dwwwwww@gmail.com>
-Date: Wed, 2 Sep 2026 07:42:11 +0200
-Subject: [PATCH] [ty] Relax symlink_inside_project index assertion
-
-unix::symlink_inside_project already documents that the file watcher
-may emit the change for the original path or the symlink path. Applying
-a change event for `bar/baz.py` adds that path to the project index.
-inotify reports the symlink path on some hosts, including riscv64,
-so the strict "original path only" check fails there.
-
-Keep the original path indexed and allow the symlink path as the only
-extra entry.
----
- crates/ty/tests/file_watching.rs | 16 +++++++++++++++-
- 1 file changed, 15 insertions(+), 1 deletion(-)
-
-diff --git a/crates/ty/tests/file_watching.rs b/crates/ty/tests/file_watching.rs
-index 98e2dbf127992..6c88b691f61ee 100644
---- a/crates/ty/tests/file_watching.rs
-+++ b/crates/ty/tests/file_watching.rs
-@@ -2019,6 +2019,9 @@ mod unix {
- // * PyCharm doesn't update diagnostics if a symlinked module is changed (same as ty).
- //
- // That's why I think it's fine to not support this case for now.
-+ //
-+ // Applying a change event for the symlink path also adds `bar/baz.py` to the project
-+ // index. inotify reports that path on some hosts, so allow it as the only extra entry.
-
- let patched_baz_text = source_text(case.db(), patched_bar_baz_file);
- let did_update_patched_baz = patched_baz_text.as_str() == "def baz(): print('Version 2')";
-@@ -2033,7 +2036,18 @@ mod unix {
- bar_baz_text = bar_baz_text.as_str()
- );
-
-- case.assert_indexed_project_files([patched_bar_baz_file]);
-+ let indexed = case.db().project().files(case.db());
-+ assert!(
-+ indexed.contains(patched_bar_baz_file),
-+ "Expected '{patched_bar_baz}' to remain indexed."
-+ );
-+ for file in &indexed {
-+ let path = file.path(case.db());
-+ assert!(
-+ file == patched_bar_baz_file || file == baz_file,
-+ "Indexed project files contains '{path}' which was not expected."
-+ );
-+ }
- Ok(())
- }
-
diff --git a/ruff.spec b/ruff.spec
index 3908bb7..ca36a71 100644
--- a/ruff.spec
+++ b/ruff.spec
@@ -1,7 +1,7 @@
%bcond check 1
Name: ruff
-Version: 0.16.6
+Version: 0.16.7
# The ruff package has a permanent exception to the Updates Policy in Fedora,
# so it can be updated in stable releases across SemVer boundaries (subject to
# good judgement and actual compatibility of any reverse dependencies). See
@@ -149,11 +149,11 @@ URL: https://github.com/astral-sh/ruff
Source: %{url}/archive/%{version}/ruff-%{version}.tar.gz
# Get this from ruff/crates/ty_vendored/vendor/typeshed/source_commit.txt.
-%global typeshed_rev cf09d2a4d7614f648e9109dce609887499a7c6ee
+%global typeshed_rev bc016545988403f13b2dd9b56e88b931683c80b1
# The typeshed project as a whole has never been versioned.
%global typeshed_baseversion 0
# Inspect https://github.com/python/typeshed/commit/%%{typeshed_rev}.
-%global typeshed_snapdate 20260831
+%global typeshed_snapdate 20260904
# Downstream patch: always find the system-wide ruff executable
#
@@ -164,9 +164,6 @@ Source: %{url}/archive/%{version}/ruff-%{version}.tar.gz
Patch: 0001-Downstream-patch-always-find-the-system-wide-ruff-ex.patch
# * ignore tests in vendored annotate-snippets that hang indefinitely:
Patch: 0002-ignore-vendored-annotate-snippets-tests-that-hang-in.patch
-# [ty] Relax symlink_inside_project index assertion - #28245
-# https://github.com/astral-sh/ruff/pull/28245
-Patch: %{url}/pull/28245.patch
BuildSystem: pyproject
BuildOption(install): --assert-license ruff
@@ -366,6 +363,8 @@ skip="${skip-} --skip python_environment::ty_environment_and_discovered_venv"
skip="${skip-} --skip python_environment::ty_environment_is_only_environment"
# Not confirmed flaky, but the other ty_environment_* ones are, so…
skip="${skip-} --skip python_environment::ty_environment_is_system_not_virtual"
+# See https://github.com/astral-sh/ruff/pull/28245
+skip="${skip-} --skip unix::symlink_inside_project"
%ifarch s390x
# This panics consistently on s390x only; not reported upstream since it
diff --git a/sources b/sources
index 1bc8ab9..42f6f26 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (ruff-0.16.6.tar.gz) = 9516c23d1e2963a5db8ed808c2ae99145afe44f8b86d8b83867f7baa839001784a356718de7f7c636fa8f125d269e2cfc622c68908eef941a39564bdfc9f5bd6
+SHA512 (ruff-0.16.7.tar.gz) = 221deb759aa9db4d3fc189a66011d6f763bbec60166e62fb935778966ec6f35e88b8ac94a31ed22412f6398100517f4f4e119d1aad884beba2a60e57c1e9662c
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-09-11 6:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-11 6:16 [rpms/ruff] rawhide: Update to 0.16.7 (close RHBZ#2531616) Benjamin A. Beasley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox