Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-python-lsp-ruff for 
openSUSE:Factory checked in at 2026-04-08 17:17:22
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-python-lsp-ruff (Old)
 and      /work/SRC/openSUSE:Factory/.python-python-lsp-ruff.new.21863 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-python-lsp-ruff"

Wed Apr  8 17:17:22 2026 rev:2 rq:1345149 version:2.3.1

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-python-lsp-ruff/python-python-lsp-ruff.changes
    2025-11-24 14:10:33.328715443 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-python-lsp-ruff.new.21863/python-python-lsp-ruff.changes
 2026-04-08 17:17:27.096166743 +0200
@@ -1,0 +2,6 @@
+Wed Apr  8 09:06:53 UTC 2026 - Dirk Müller <[email protected]>
+
+- update to 2.3.1:
+  * fix: Replace deprecated E999 error
+
+-------------------------------------------------------------------

Old:
----
  python_lsp_ruff-2.3.0.tar.gz

New:
----
  python_lsp_ruff-2.3.1.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-python-lsp-ruff.spec ++++++
--- /var/tmp/diff_new_pack.uN8uC1/_old  2026-04-08 17:17:28.148209996 +0200
+++ /var/tmp/diff_new_pack.uN8uC1/_new  2026-04-08 17:17:28.152210160 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-python-lsp-ruff
 #
-# Copyright (c) 2025 SUSE LLC
+# Copyright (c) 2026 SUSE LLC and contributors
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -17,7 +17,7 @@
 
 
 Name:           python-python-lsp-ruff
-Version:        2.3.0
+Version:        2.3.1
 Release:        0
 Summary:        Ruff linting plugin for pylsp
 License:        MIT

++++++ python_lsp_ruff-2.3.0.tar.gz -> python_lsp_ruff-2.3.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python_lsp_ruff-2.3.0/PKG-INFO 
new/python_lsp_ruff-2.3.1/PKG-INFO
--- old/python_lsp_ruff-2.3.0/PKG-INFO  2025-09-29 22:09:15.365357000 +0200
+++ new/python_lsp_ruff-2.3.1/PKG-INFO  2026-04-01 19:31:29.006217000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.4
 Name: python-lsp-ruff
-Version: 2.3.0
+Version: 2.3.1
 Summary: Ruff linting plugin for pylsp
 Author-email: Julian Hossbach <[email protected]>
 License: MIT
@@ -9,7 +9,7 @@
 Requires-Python: >=3.8
 Description-Content-Type: text/markdown
 License-File: LICENSE
-Requires-Dist: ruff>=0.2.0
+Requires-Dist: ruff>=0.8.0
 Requires-Dist: python-lsp-server
 Requires-Dist: cattrs!=23.2.1
 Requires-Dist: lsprotocol>=2023.0.1
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python_lsp_ruff-2.3.0/pylsp_ruff/plugin.py 
new/python_lsp_ruff-2.3.1/pylsp_ruff/plugin.py
--- old/python_lsp_ruff-2.3.0/pylsp_ruff/plugin.py      2025-09-29 
22:02:08.000000000 +0200
+++ new/python_lsp_ruff-2.3.1/pylsp_ruff/plugin.py      2026-04-01 
19:09:25.000000000 +0200
@@ -224,7 +224,7 @@
     # Ruff intends to implement severity codes in the future,
     # see https://github.com/charliermarsh/ruff/issues/645.
     severity = DiagnosticSeverity.Warning
-    if check.code == "None" or check.code == "E999" or check.code[0] == "F":
+    if check.code == "None" or check.code == "invalid-syntax" or check.code[0] 
== "F":
         severity = DiagnosticSeverity.Error
 
     # Check if check.code starts contained in given severities
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python_lsp_ruff-2.3.0/pyproject.toml 
new/python_lsp_ruff-2.3.1/pyproject.toml
--- old/python_lsp_ruff-2.3.0/pyproject.toml    2025-09-29 22:02:16.000000000 
+0200
+++ new/python_lsp_ruff-2.3.1/pyproject.toml    2026-04-01 19:27:12.000000000 
+0200
@@ -7,13 +7,13 @@
 authors = [
   {name = "Julian Hossbach", email = "[email protected]"}
 ]
-version = "2.3.0"
+version = "2.3.1"
 description = "Ruff linting plugin for pylsp"
 readme = "README.md"
 requires-python = ">=3.8"
 license = {text = "MIT"}
 dependencies = [
-  "ruff>=0.2.0",
+  "ruff>=0.8.0",
   "python-lsp-server",
        "cattrs!=23.2.1",
   "lsprotocol>=2023.0.1",
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/python_lsp_ruff-2.3.0/python_lsp_ruff.egg-info/PKG-INFO 
new/python_lsp_ruff-2.3.1/python_lsp_ruff.egg-info/PKG-INFO
--- old/python_lsp_ruff-2.3.0/python_lsp_ruff.egg-info/PKG-INFO 2025-09-29 
22:09:15.000000000 +0200
+++ new/python_lsp_ruff-2.3.1/python_lsp_ruff.egg-info/PKG-INFO 2026-04-01 
19:31:29.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.4
 Name: python-lsp-ruff
-Version: 2.3.0
+Version: 2.3.1
 Summary: Ruff linting plugin for pylsp
 Author-email: Julian Hossbach <[email protected]>
 License: MIT
@@ -9,7 +9,7 @@
 Requires-Python: >=3.8
 Description-Content-Type: text/markdown
 License-File: LICENSE
-Requires-Dist: ruff>=0.2.0
+Requires-Dist: ruff>=0.8.0
 Requires-Dist: python-lsp-server
 Requires-Dist: cattrs!=23.2.1
 Requires-Dist: lsprotocol>=2023.0.1
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/python_lsp_ruff-2.3.0/python_lsp_ruff.egg-info/requires.txt 
new/python_lsp_ruff-2.3.1/python_lsp_ruff.egg-info/requires.txt
--- old/python_lsp_ruff-2.3.0/python_lsp_ruff.egg-info/requires.txt     
2025-09-29 22:09:15.000000000 +0200
+++ new/python_lsp_ruff-2.3.1/python_lsp_ruff.egg-info/requires.txt     
2026-04-01 19:31:29.000000000 +0200
@@ -1,4 +1,4 @@
-ruff>=0.2.0
+ruff>=0.8.0
 python-lsp-server
 cattrs!=23.2.1
 lsprotocol>=2023.0.1
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python_lsp_ruff-2.3.0/tests/test_ruff_lint.py 
new/python_lsp_ruff-2.3.1/tests/test_ruff_lint.py
--- old/python_lsp_ruff-2.3.0/tests/test_ruff_lint.py   2025-03-15 
16:43:53.000000000 +0100
+++ new/python_lsp_ruff-2.3.1/tests/test_ruff_lint.py   2026-04-01 
19:09:25.000000000 +0200
@@ -24,6 +24,10 @@
     return t
 """
 
+DOC_INVALID = r"""
+a = 
+"""
+
 
 @pytest.fixture()
 def workspace(tmp_path):
@@ -74,6 +78,24 @@
         os.remove(name)
 
 
+def test_ruff_invalid(workspace):
+    name, doc = temp_document(DOC_INVALID, workspace)
+    try:
+        diags = ruff_lint.pylsp_lint(workspace, doc)
+        assert len(diags) == 1
+        diag = diags[0]
+
+        assert diag["source"] == "ruff"
+        assert diag["code"] == "invalid-syntax"
+        assert diag["message"] == "Expected an expression"
+        assert diag["range"]["start"] == {"line": 1, "character": 4}
+        assert diag["range"]["end"] == {"line": 2, "character": 0}
+        assert diag["severity"] == lsp.DiagnosticSeverity.Error
+        assert diag["tags"] == []
+    finally:
+        os.remove(name)
+
+
 def test_ruff_config_param(workspace):
     with patch("pylsp_ruff.plugin.Popen") as popen_mock:
         mock_instance = popen_mock.return_value
@@ -268,7 +290,7 @@
 
     diags = ruff_lint.pylsp_lint(workspace, doc)
     diag_codes = [diag["code"] for diag in diags]
-    assert "E999" not in diag_codes
+    assert "invalid-syntax" not in diag_codes
     assert "E402" in diag_codes
     assert "F401" in diag_codes
     assert "F841" in diag_codes

Reply via email to