From 88c8e08579ac621a14d3aecaeaa92ad61e0c391b Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 5 Oct 2026 23:51:56 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/psf/black-pre-commit-mirror: 26.5.1 → 26.10.0](https://github.com/psf/black-pre-commit-mirror/compare/26.5.1...26.10.0) - [github.com/codespell-project/codespell: v2.4.2 → v2.4.3](https://github.com/codespell-project/codespell/compare/v2.4.2...v2.4.3) - [github.com/crate-ci/typos: v1.48.0 → typos-dict-v0.14.2](https://github.com/crate-ci/typos/compare/v1.48.0...typos-dict-v0.14.2) - [github.com/pycqa/isort: 8.0.1 → 9.0.2](https://github.com/pycqa/isort/compare/8.0.1...9.0.2) - [github.com/astral-sh/ruff-pre-commit: v0.15.20 → v0.16.10](https://github.com/astral-sh/ruff-pre-commit/compare/v0.15.20...v0.16.10) - [github.com/tcort/markdown-link-check: v3.14.2 → v3.15.0](https://github.com/tcort/markdown-link-check/compare/v3.14.2...v3.15.0) --- .pre-commit-config.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6b4e7d12a5..47c0291217 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -32,7 +32,7 @@ repos: ] - repo: https://github.com/psf/black-pre-commit-mirror - rev: 26.5.1 + rev: 26.10.0 hooks: - id: black files: (.*\.py)$ @@ -52,7 +52,7 @@ repos: - black==26.5.1 - repo: https://github.com/codespell-project/codespell - rev: v2.4.2 + rev: v2.4.3 hooks: - id: codespell args: [-w] @@ -61,26 +61,26 @@ repos: - tomli - repo: https://github.com/crate-ci/typos - rev: v1.48.0 + rev: typos-dict-v0.14.2 hooks: - id: typos exclude: ^auto_round/export/export_to_gguf/conversion/.*\.py$ - repo: https://github.com/pycqa/isort - rev: 8.0.1 + rev: 9.0.2 hooks: - id: isort exclude: ^auto_round/export/export_to_gguf/conversion/.*\.py$ - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.15.20 + rev: v0.16.10 hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix, --no-cache] exclude: ^auto_round/export/export_to_gguf/conversion/.*\.py$ - repo: https://github.com/tcort/markdown-link-check - rev: v3.14.2 + rev: v3.15.0 hooks: - id: markdown-link-check args: [-q, -c .azure-pipelines/scripts/codeScan/markdown-link-check/markdown-link-check.json] From dff31b2d1871c8712a12f6b73bcab2eefef569ad Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 5 Oct 2026 23:53:18 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- .../ark/auto_round_kernel/sparse_attention.py | 4 +--- test/unit/common/algorithms/test_rotation.py | 10 ++-------- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/auto_round_extension/ark/auto_round_kernel/sparse_attention.py b/auto_round_extension/ark/auto_round_kernel/sparse_attention.py index e45febf887..d3d6f7837d 100644 --- a/auto_round_extension/ark/auto_round_kernel/sparse_attention.py +++ b/auto_round_extension/ark/auto_round_kernel/sparse_attention.py @@ -22,9 +22,7 @@ ) from . import sagev1 as _dense_sagev1 from . import sagev1_pvi8 as _dense_sagev1_pvi8 -from . import ( - sdpa, -) +from . import sdpa def _get_xpu_sparse_kernel_backend() -> str: diff --git a/test/unit/common/algorithms/test_rotation.py b/test/unit/common/algorithms/test_rotation.py index 4f8b020160..a55752831b 100644 --- a/test/unit/common/algorithms/test_rotation.py +++ b/test/unit/common/algorithms/test_rotation.py @@ -62,15 +62,9 @@ from auto_round.algorithms.transforms.hadamard.inplace.hooks import ( deterministic_hadamard_matrix as inplace_det_hadamard, ) -from auto_round.algorithms.transforms.hadamard.inplace.hooks import ( - get_hadK, - get_or_create_random_hadamard, -) +from auto_round.algorithms.transforms.hadamard.inplace.hooks import get_hadK, get_or_create_random_hadamard from auto_round.algorithms.transforms.hadamard.inplace.hooks import is_pow2 as inplace_is_pow2 -from auto_round.algorithms.transforms.hadamard.inplace.hooks import ( - matmul_hadU, - matmul_hadUt, -) +from auto_round.algorithms.transforms.hadamard.inplace.hooks import matmul_hadU, matmul_hadUt from auto_round.algorithms.transforms.hadamard.inplace.hooks import random_hadamard_matrix as inplace_rand_hadamard from auto_round.algorithms.transforms.hadamard.inplace.model_config import ( MAPPING_REGISTRY,