From 68175492bf69e475d427e4d0cded74046a58103e Mon Sep 17 00:00:00 2001 From: Dan Fiedler Date: Fri, 21 Aug 2026 15:22:31 -0400 Subject: [PATCH 1/3] Pin GitHub Actions to full-length commit SHAs --- .github/dependabot.yml | 11 +++++++++++ .github/workflows/test.yml | 12 ++++++------ 2 files changed, 17 insertions(+), 6 deletions(-) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 00000000..2c48305b --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,11 @@ +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + groups: + github-actions: + patterns: ["*"] + schedule: + interval: "weekly" + cooldown: + default-days: 7 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1169d839..9e0e9bb2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -17,15 +17,15 @@ jobs: steps: - name: Check out code - uses: actions/checkout@v2 + uses: actions/checkout@0717577d45739eb3c851188b29f50ed6c0b2194e # v2.8.0 - name: Setup Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 + uses: actions/setup-python@e9aba2c848f5ebd159c070c61ea2c4e2b122355e # v2.3.4 with: python-version: ${{ matrix.python-version }} - name: Cache pip - uses: actions/cache@v4 + uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 with: path: ~/.cache/pip key: ${{ runner.os }}-pip-${{ hashFiles('**/pyproject.toml') }} @@ -36,7 +36,7 @@ jobs: run: python -m pip install --group tests - name: Run pyright tests - uses: jakebailey/pyright-action@v2 + uses: jakebailey/pyright-action@6cabc0f01c4994be48fd45cd9dbacdd6e1ee6e5e # v2.3.3 with: pylance-version: latest-prerelease python-version: ${{ matrix.python-version }} @@ -53,9 +53,9 @@ jobs: steps: - name: Check out code - uses: actions/checkout@v2 + uses: actions/checkout@0717577d45739eb3c851188b29f50ed6c0b2194e # v2.8.0 - name: Run Ruff Linter - uses: astral-sh/ruff-action@v3 + uses: astral-sh/ruff-action@4919ec5cf1f49eff0871dbcea0da843445b837e6 # v3.6.1 - name: Run Ruff Formatter run: ruff format --check From 83af1f84c9159e312a954b68b51fe2ea3d99c87b Mon Sep 17 00:00:00 2001 From: Rich Chiodo false Date: Tue, 27 Oct 2026 13:29:25 -0700 Subject: [PATCH 2/3] Remove unused noqa causing action-pinning PR hygiene failure Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: ee5422c8-7d8e-4ef8-a050-de857f5b799a --- stubs/matplotlib/pyplot.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stubs/matplotlib/pyplot.pyi b/stubs/matplotlib/pyplot.pyi index 0370b6d0..faf873ae 100644 --- a/stubs/matplotlib/pyplot.pyi +++ b/stubs/matplotlib/pyplot.pyi @@ -779,7 +779,7 @@ def tick_params(axis: Literal["x", "y", "both"] = ..., **kwargs): ... def ticklabel_format( *, axis: Literal["x", "y", "both"] = ..., - style: Literal["sci", "scientific", "plain"] = ..., # noqa: F811 + style: Literal["sci", "scientific", "plain"] = ..., scilimits=..., useOffset: bool | float = ..., useLocale: bool = ..., From e30be886a0c7bd59e00383b5f53e436f33dda42c Mon Sep 17 00:00:00 2001 From: Rich Chiodo false Date: Tue, 27 Oct 2026 13:33:59 -0700 Subject: [PATCH 3/3] Import ComplexWarning from its supported NumPy location Match sklearn runtime and the existing utils.fixes stub, fixing Python 3.13 Pyright validation with current NumPy. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: ee5422c8-7d8e-4ef8-a050-de857f5b799a --- stubs/sklearn/utils/validation.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stubs/sklearn/utils/validation.pyi b/stubs/sklearn/utils/validation.pyi index d00a6101..08408024 100644 --- a/stubs/sklearn/utils/validation.pyi +++ b/stubs/sklearn/utils/validation.pyi @@ -13,7 +13,7 @@ import numpy as np import scipy.sparse as sp from joblib.memory import Memory from numpy import ndarray -from numpy.core.numeric import ComplexWarning as ComplexWarning +from numpy.exceptions import ComplexWarning as ComplexWarning from numpy.random.mtrand import RandomState from pandas import DataFrame from scipy.sparse import spmatrix