This is an automated email from the ASF dual-hosted git repository.

skrawcz pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/hamilton.git

commit a2d0f20557b7d63f41bb619e499b63f88732c901
Author: Pablo Eduardo Diaz <[email protected]>
AuthorDate: Sat Feb 14 21:20:58 2026 +0200

    Skip ray tests on Python 3.14 and fix ruff.toml config
    
    - Add collect_ignore in plugin_tests/h_ray/conftest.py for Python 3.14+
    - Fix ruff.toml lint.per-file-ignores to per-file-ignores for CI 
compatibility
    
    Fixes apache#1467
---
 plugin_tests/h_ray/conftest.py | 13 +++++++++++++
 ui/sdk/ruff.toml               |  2 +-
 2 files changed, 14 insertions(+), 1 deletion(-)

diff --git a/plugin_tests/h_ray/conftest.py b/plugin_tests/h_ray/conftest.py
index b131ad9a..dd0219c0 100644
--- a/plugin_tests/h_ray/conftest.py
+++ b/plugin_tests/h_ray/conftest.py
@@ -15,7 +15,20 @@
 # specific language governing permissions and limitations
 # under the License.
 
+import sys
+
 from hamilton import telemetry
 
 # disable telemetry for all tests!
 telemetry.disable_telemetry()
+
+# Skip tests that require packages not yet available on Python 3.14
+collect_ignore = []
+if sys.version_info >= (3, 14):
+    collect_ignore.extend(
+        [
+            # ray - no Python 3.14 support yet
+            "test_h_ray.py",
+            "test_parse_ray_remote_options_from_tags.py",
+        ]
+    )
diff --git a/ui/sdk/ruff.toml b/ui/sdk/ruff.toml
index b140b15f..dce37d81 100644
--- a/ui/sdk/ruff.toml
+++ b/ui/sdk/ruff.toml
@@ -1,6 +1,6 @@
 line-length = 100
 
 
-[lint.per-file-ignores]
+[per-file-ignores]
 # skip line length for API client files.
 "src/dagworks/api/*" = ["E501"]

Reply via email to