From 2fae24d2aac60aedf06095bf3b2a85bb58cfde5e Mon Sep 17 00:00:00 2001 From: Uriah Finkel Date: Thu, 20 Aug 2026 18:55:32 +0300 Subject: [PATCH 1/4] ci: enforce Ruff checks --- .github/workflows/python-package.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 32f56f6a..5b42d0d1 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -28,6 +28,12 @@ jobs: - name: Install the project run: uv sync --all-extras --dev + - name: Check lint + run: uv run ruff check . + + - name: Check formatting + run: uv run ruff format --check . + - name: Build package run: uv build From b3f74267395b3431206ead4f41e53159b2bfe1a1 Mon Sep 17 00:00:00 2001 From: Uriah Finkel Date: Thu, 20 Aug 2026 19:10:35 +0300 Subject: [PATCH 2/4] chore: remove unused gains import --- src/rtichoke/discrimination/gains.py | 1 - 1 file changed, 1 deletion(-) diff --git a/src/rtichoke/discrimination/gains.py b/src/rtichoke/discrimination/gains.py index 5350446f..0f3099a1 100644 --- a/src/rtichoke/discrimination/gains.py +++ b/src/rtichoke/discrimination/gains.py @@ -6,7 +6,6 @@ from plotly.graph_objs._figure import Figure from rtichoke.processing.binary_color_values import _apply_color_values_binary from rtichoke.processing.plotly_helper_functions import ( - _create_rtichoke_plotly_curve_times, _create_rtichoke_plotly_curve_binary, _plot_rtichoke_curve_binary, _create_rtichoke_curve_list_times, From 07e86e2e346896caa63b4abf837aca9e44a30bc6 Mon Sep 17 00:00:00 2001 From: Uriah Finkel Date: Thu, 20 Aug 2026 19:10:57 +0300 Subject: [PATCH 3/4] chore: remove unused test import --- tests/test_decision_curve_dcurves_parity.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tests/test_decision_curve_dcurves_parity.py b/tests/test_decision_curve_dcurves_parity.py index 57f62263..c31cd709 100644 --- a/tests/test_decision_curve_dcurves_parity.py +++ b/tests/test_decision_curve_dcurves_parity.py @@ -2,7 +2,6 @@ from importlib import resources -import numpy as np import polars as pl from dcurves import dca from numpy.testing import assert_allclose @@ -40,9 +39,7 @@ def _dcurves_survival_dca(data: pl.DataFrame, thresholds: list[float]): # dcurves requires a pandas DataFrame and already depends on pandas itself. # Building it from plain Python data avoids adding pyarrow just for # `pl.DataFrame.to_pandas()`. - pandas_df_type = type( - dca.__globals__["pd"].DataFrame() - ) + pandas_df_type = type(dca.__globals__["pd"].DataFrame()) pandas_data = pandas_df_type(data.to_dict(as_series=False)) return dca( From 2d83cdd2141581fe90394bc916766790a2f79194 Mon Sep 17 00:00:00 2001 From: Uriah Finkel Date: Thu, 20 Aug 2026 21:09:09 +0300 Subject: [PATCH 4/4] ci: keep Ruff lint-only in baseline PR --- .github/workflows/python-package.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 5b42d0d1..6d670a54 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -31,9 +31,6 @@ jobs: - name: Check lint run: uv run ruff check . - - name: Check formatting - run: uv run ruff format --check . - - name: Build package run: uv build